“Everything should be as simple as it is, but not simpler.” Albert Einstein
“Everything should be as simple as it is, but not simpler.” Albert Einstein
“Everything should be as simple as it is, but not simpler.” Albert Einstein
“Everything should be as simple as it is, but not simpler.” Albert Einstein
“Everything should be as simple as it is, but not simpler.” Albert Einstein
So you shouldn't call saveChanges() if writeTo(OutputStream) is about to execute. I think the implementation somehow clear off some variables once saveChanges() is triggered hence the NullPointerException. Google the source code if you want to investigate more.This method is called automatically when writeTo(OutputStream) is called.
“Everything should be as simple as it is, but not simpler.” Albert Einstein
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |