System.Reflection.Assembly.CreateInstance() can return null value.
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
throw new SystemException("Failed to open connection due to: " + ex);
}
+ if (conn == null)
+ {
+ throw new SystemException("Failed to open connection");
+ }
+
conn.Open(uri);
return conn;
}
throw new SystemException("Failed to open connection due to: " + ex);
}
+ if (conn == null)
+ {
+ throw new SystemException("Failed to open connection");
+ }
+
conn.Open(connectionString);
return conn;
}