Re: Object IllegalStateException Problem
- From: Andreas Leitgeb <avl@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 10 Nov 2011 16:51:06 GMT
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)
.
- Follow-Ups:
- Re: Object IllegalStateException Problem
- From: ptreves
- Re: Object IllegalStateException Problem
- References:
- Object IllegalStateException Problem
- From: ptreves
- Object IllegalStateException Problem
- Prev by Date: Object IllegalStateException Problem
- Next by Date: Re: Object IllegalStateException Problem
- Previous by thread: Object IllegalStateException Problem
- Next by thread: Re: Object IllegalStateException Problem
- Index(es):
Relevant Pages
|