Commit 92e2426c485b055cf63f395e287dc1234baadd83

Authored by Amrita Vishnoi
1 parent bebce839

one fix

400-SOURCECODE/AIAHTML5.API/Models/DBModel.cs
... ... @@ -1018,9 +1018,9 @@ namespace ADAM.AIAHTML5.API.Models
1018 1018 //
1019 1019 internal static DataTable getAIALicenseEditionDetails(int userId)
1020 1020 {
1021   - SqlDataReader dtReader = null;
  1021 + SqlDataReader dtReader;
1022 1022 SqlConnection conn = null;
1023   - DataTable dt = null;
  1023 + DataTable dt = new DataTable();
1024 1024 try
1025 1025 {
1026 1026 conn = new SqlConnection(dbConnectionString);
... ... @@ -1052,7 +1052,7 @@ namespace ADAM.AIAHTML5.API.Models
1052 1052 {
1053 1053 SqlDataReader dtReader = null;
1054 1054 SqlConnection conn = null;
1055   - DataTable dt = null;
  1055 + DataTable dt = new DataTable();
1056 1056 try
1057 1057 {
1058 1058 conn = new SqlConnection(dbConnectionString);
... ...