Commits

stefanjummp committed 9fac4c1

handle null pointer exception in the search

  • Participants
  • Parent commits 6b51199

Comments (0)

Files changed (1)

File jummp-plugins/jummp-plugin-web-application/grails-app/controllers/net/biomodels/jummp/webapp/SearchController.groovy

         dataToRender.sSortDir_0 = params.sSortDir_0
 
         ModelListSorting sort
+        if (params.iSortCol_0 == null) {
+            params.iSortCol_0 = 0
+        }
+
         switch (params.iSortCol_0 as int) {
         case 1:
             sort = ModelListSorting.NAME