small medium large xlarge

24 Jan 2014, 18:50
Mike Kabala (2 posts)

I get an error in getLastSavedTimelineItem() when I use the Chapter 5 code.

TimelineItem timelineItem = timeline.get( id ).execute();

throws an exception if called with an ID = null. To fix this, I have replaced it with the following 2 lines:

TimelineItem timelineItem = null;
if (id != null) timelineItem = timeline.get( id ).execute();
You must be logged in to comment