Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9827
| Newsgroups | comp.lang.java.programmer |
|---|---|
| From | Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> |
| Subject | Re: Object IllegalStateException Problem |
| References | <ba4fae99-a9a7-4299-b0dd-94a999e2a57c@a5g2000vbb.googlegroups.com> |
| Message-ID | <slrnjbo07q.fvg.avl@gamma.logic.tuwien.ac.at> (permalink) |
| Date | 2011-11-10 16:51 +0000 |
ptreves <ptreves@gmail.com> 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)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Object IllegalStateException Problem ptreves <ptreves@gmail.com> - 2011-11-10 08:23 -0800
Re: Object IllegalStateException Problem Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-10 16:51 +0000
Re: Object IllegalStateException Problem ptreves <ptreves@gmail.com> - 2011-11-10 08:59 -0800
Re: Object IllegalStateException Problem Patricia Shanahan <pats@acm.org> - 2011-11-10 10:21 -0800
Re: Object IllegalStateException Problem Lew <lewbloch@gmail.com> - 2011-11-10 15:03 -0800
csiph-web