bug fix on possible holds crash
authordrizea <danielrizea27@gmail.com>
Fri, 17 Aug 2012 14:57:08 +0000 (17:57 +0300)
committerdrizea <danielrizea27@gmail.com>
Fri, 17 Aug 2012 14:57:08 +0000 (17:57 +0300)
Open-ILS/src/Android/src/org/evergreen/android/accountAccess/holds/HoldRecord.java
Open-ILS/src/Android/src/org/evergreen/android/searchCatalog/SearchCatalogListView.java

index b133f06..82e5a28 100644 (file)
@@ -113,12 +113,15 @@ public class HoldRecord implements Serializable {
         if (res.equals("t"))
             this.email_notification = true;
         res = ahr.getString("phone_notify");
-        if (res.equals("t"))
-            this.phone_notification = true;
+
+        if (res != null)
+            if (res.equals("t"))
+                this.phone_notification = true;
 
         res = ahr.getString("frozen");
-        if (res.equals("t"))
-            this.suspended = true;
+        if (res != null)
+            if (res.equals("t"))
+                this.suspended = true;
         pickup_lib = ahr.getInt("pickup_lib");
 
     }
index 73a2dcb..4318471 100644 (file)
@@ -728,7 +728,6 @@ public class SearchCatalogListView extends Activity {
                     .getCount()
                     + " out of "
                     + search.visible);
-            
         }
         break;
         
@@ -801,7 +800,6 @@ public class SearchCatalogListView extends Activity {
                 // Get reference to ImageView
                 recordImage = (ImageView) row
                         .findViewById(R.id.search_record_img);
-                // TODO fix bugs + features
                 String imageHref = GlobalConfigs.httpAddress
                         + "/opac/extras/ac/jacket/small/" + record.isbn;
                 // start async download of image