Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9829
| Date | 2011-11-10 10:21 -0800 |
|---|---|
| From | Patricia Shanahan <pats@acm.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Object IllegalStateException Problem |
| References | <ba4fae99-a9a7-4299-b0dd-94a999e2a57c@a5g2000vbb.googlegroups.com> <slrnjbo07q.fvg.avl@gamma.logic.tuwien.ac.at> <b07905c0-175e-4853-a7fa-7796a800be78@n6g2000vbg.googlegroups.com> |
| Message-ID | <CPednc-_VpS0iyHTnZ2dnUVZ_oednZ2d@earthlink.com> (permalink) |
On 11/10/2011 8:59 AM, ptreves wrote:
> This is the getSaveFile() method:
>
> private FileInfo getSaveFile() throws IOException {
> if (object == null) {
> throw new IllegalStateException("Please load a version of
> an object before saving!");
> }
>
> // get the uncommitted version if it is there
> FileInfo saveFile =
> getConfigurationVersions().get(ConfigurationVersion.UNCOMMITTED);
>
> if (saveFile == null) {
> // otherwise create a new temp file
> saveFile =
> FileInfo.createTempFile(getConfigurationFileName(),
> getConfigurationDirectory());
> }
>
> return saveFile;
> }
>
> Paolo
Where is "object" defined, and what is supposed give it a non-null value?
Patricia
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