B2024-085 Fix Object Reference Error when Getting Schema for a RO database in SQL

After converting the Robinson ROs to SQL, upon changing an In Use field and clicking Continue, an "Error on Schema" message box displayed with an unhandled error exception.
This commit is contained in:
mschill committed 2024-10-23 14:07:20 -04:00
1 parent 43b13443ab
commit 0c342fa188
1 file changed
+1 -1
@@ -1921,7 +1921,7 @@ namespace RODBInterface
command.Parameters.AddWithValue("@RecID", Recid); command.Parameters.AddWithValue("@RecID", Recid);
using (SqlDataReader reader = command.ExecuteReader()) using (SqlDataReader reader = command.ExecuteReader())
{ {
if (DBE.Read()) if (reader.Read())
Info = reader.GetString(0); Info = reader.GetString(0);
else else
Info = null; Info = null;