Step 98 - Using GSON to persist your todo model as JSON #510

Submitted 3 years ago

Hi, following your example, I get the following error;

Caused by: java.lang.NullPointerException at com.vogella.tasks.model.Todo.setSummary(

I ran it in debug mode and the "changes" field is null.


  3 years ago

Thanks for reporting. I’m now going through to see if it still works for me.

  3 years ago

Status update: I reproduced the problem and implemented a workaround. Baseline is that the PropertyChangeSupport is not restored by GSON and therefore null. I will update description tomorrow to reflect the workaround (and implement a few other enhancements)

  3 years ago

Thank you very much!

  3 years ago

I close this issue, please reopen if you still face issue.

Please login to write a comment.