Skip to content

Commit

Permalink
fix FC on importing custom events
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-lopreiato committed Apr 20, 2014
1 parent c85090a commit 49bf4a2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonNull;
import com.google.gson.JsonObject;
import com.plnyyanks.frcnotebook.Constants;
import com.plnyyanks.frcnotebook.datatypes.Event;
Expand Down Expand Up @@ -373,7 +374,8 @@ public void importEvents(JsonArray events) {
event.setEventName(e.get(KEY_EVENTNAME).getAsString());
event.setShortName(e.get(KEY_EVENTSHORT).getAsString());
event.setEventYear(e.get(KEY_EVENTYEAR).getAsInt());
event.setEventLocation(e.get(KEY_EVENTLOC).getAsString());
if(!(e.get(KEY_EVENTLOC) instanceof JsonNull))
event.setEventLocation(e.get(KEY_EVENTLOC).getAsString());
event.setEventStart(e.get(KEY_EVENTSTART).getAsString());
event.setEventEnd(e.get(KEY_EVENTEND).getAsString());
event.setOfficial(e.get(KEY_EVENTOFFICIAL).getAsBoolean());
Expand Down

0 comments on commit 49bf4a2

Please sign in to comment.