diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js
index c4126c9..f7f3b17 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js
@@ -112,7 +112,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
$('#' + $rootScope.getLocalStorageValue("currentAIImageId")).find('.thumbnail').addClass('HightLightThumbnail');
$('#' + $rootScope.getLocalStorageValue("currentAIImageId")).removeClass('selected');
$scope.query.SelectedDiv = tabToSet;
- if (searchText != '') {
+ //Add Condition for fixed bug-45300
+ if (searchText != '' && searchText != null) {
$scope.ApplySearch(searchText);
}
else {
@@ -124,7 +125,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
$scope.loadAIModuleById = function (moduleId) {
-
+ debugger;
var ImageCount = $rootScope.getLocalStorageValue("ImageCount");