MattHeard / Dendrite

Write an interactive adventure story with the rest of the world
MIT License
2 stars 0 forks source link

Submitted a story page and got Internal Server Error 500. #79

Closed hamle365 closed 10 years ago

hamle365 commented 10 years ago

I tried to write an addition to Isaac's story "Chimney battle!". I wrote on the link 'Sing an annoying song', and wrote body text, as well as 3 options. I was logged in to my user. When I clicked submit, it came up with "Internal Server Error 500". I clicked back and my draft had been saved, but after going back to the Table of Contents and trying to go back to my draft, is was gone.

MattHeard commented 10 years ago
/submitWrite
java.lang.NullPointerException
    at com.deuteriumlabs.dendrite.controller.SubmitController.setContent(SubmitController.java:176)
    at com.deuteriumlabs.dendrite.controller.SubmitWriteServlet.doPost(SubmitWriteServlet.java:30)
MattHeard commented 10 years ago

The saved draft functionality was completed for the new page but not for the write page nor the rewrite page.

I have not yet finished it because I have not figured out how to save multiple drafts for each form.

For example, if I write a draft on the write page coming from an option on page 1a and then save it, but then start another draft on the write page coming from an option on page 2a and then save it, the draft coming from page 2a should not overwrite the draft coming from 1a.