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

CLOSED
Submitted 4 years ago

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

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

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

Comments

  4 years ago

Thanks for reporting. I’m now going through https://learn.vogella.com/exercises/rich-client-platform/using-the-gson-library-in-your-application-0DKT2 to see if it still works for me.

  4 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)

  4 years ago

Thank you very much!

  4 years ago

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

Please login to write a comment.