mhotan / DineOn

Git Repository for our 403(13sp) Android application "DineOn"
0 stars 0 forks source link

IllegalArgumentException thrown when packing a Restaurant without hours specified #290

Closed glee23 closed 11 years ago

glee23 commented 11 years ago

Severity: Major

Repo steps:

  1. Log onto the Restaurant app with a restaurant without hours defined.
  2. Go and add a menu item.
  3. Hit save and see that the app crashed

java.lang.IllegalArgumentException: value may not be null. at com.parse.ParseObject.put(ParseObject.java:2054) at uw.cse.dineon.library.RestaurantInfo.packObject(RestaurantInfo.java:96)

Line 96: po.put(HOURS, mHours)

Resolution: Invalid -- my Restaurant was created before the code to set hours by default was implemented