24 Jan 2014, 18:50
Baldmesquarepaleicon_pragsmall

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();
26 Jan 2014, 03:58
25233_377319146748_591736748_3799641_97127_n_pragsmall

Eric Redmond (19 posts)

Mike,

Good catch, I appreciate the patch. I’d updated the github code as per your suggestion (it’ll appear in the later prints of the book).

https://github.com/coderoshi/glassmirror

Thanks for the errata, Eric

  You must be logged in to comment