Re: Object IllegalStateException Problem



ptreves <ptreves@xxxxxxxxx> wrote:
java.lang.IllegalStateException: Please load a version of an object
before saving!
at
com.gepower.d400.model.config.ConfigurationImpl.getSaveFile(ConfigurationImpl.java:
309)

Have a closer look at ConfigurationImpl.getSaveFile!

If you quote the method, don't forget to insert a comment indicating
which of the lines is number 309 within ConfigurationImpl.java.

Now, I am thincking that the command:
hmiAccessMgrModel.equals(null)
is causing the problem and should be re-written as:
hmiAccessMgrModel == null

Yes, it really should be re-written as you say.

As it is: if the left side ever *was* null, then you
get a NullPointerException rather than a true result
from xyz.equals(null)

.



Relevant Pages

  • Re: Fear the prospects of a new Elric movie
    ... Between saving the world and having a spot of tea Matt Frisch said ... The really amusing thing is that you did not quote anything. ...
    (rec.games.frp.dnd)
  • Re: How long can I run FireWire?
    ... good and has my PC setup and the good speakers in it. ... And - saving a lot of quote - you want to operate the mixdown from your ...
    (rec.audio.pro)
  • Re: Teaching a total beginner Ring game NLHE
    ... I'm well known as the king of the ignorant smart ass twits. ... I'm saving that quote, but do you have any proof of these credentials? ...
    (rec.gambling.poker)
  • Re: Without indicating any snippage (was: As early as in 1898?)
    ... Jeff Turner snipped without indicating any snippage. ... You quote only what you ... are responding to. ...
    (alt.usage.english)
  • Re: Shipping a mill
    ... The best quote for shipping I've gotten so far is over ... which would probably kill the deal. ... Any particular reason you can't hold on and find something closer? ...
    (rec.crafts.metalworking)