Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9832

Re: Object IllegalStateException Problem

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Object IllegalStateException Problem
Date Thu, 10 Nov 2011 15:03:02 -0800 (PST)
Organization http://groups.google.com
Lines 32
Message-ID <10130030.857.1320966182398.JavaMail.geo-discussion-forums@prap37> (permalink)
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>
Reply-To comp.lang.java.programmer@googlegroups.com
NNTP-Posting-Host 2620:0:1000:2404:224:d7ff:fe69:5838
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1320966182 7544 127.0.0.1 (10 Nov 2011 23:03:02 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Thu, 10 Nov 2011 23:03:02 +0000 (UTC)
In-Reply-To <b07905c0-175e-4853-a7fa-7796a800be78@n6g2000vbg.googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2620:0:1000:2404:224:d7ff:fe69:5838; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
User-Agent G2/1.0
X-Google-Web-Client true
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9832

Show key headers only | View raw


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;
>     }

You completely ignored Andreas's advice!

Here's what you need to provide us:
http://sscce.org/

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


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