Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #9828
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!postnews.google.com!n6g2000vbg.googlegroups.com!not-for-mail |
|---|---|
| From | ptreves <ptreves@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Object IllegalStateException Problem |
| Date | Thu, 10 Nov 2011 08:59:32 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 23 |
| Message-ID | <b07905c0-175e-4853-a7fa-7796a800be78@n6g2000vbg.googlegroups.com> (permalink) |
| References | <ba4fae99-a9a7-4299-b0dd-94a999e2a57c@a5g2000vbb.googlegroups.com> <slrnjbo07q.fvg.avl@gamma.logic.tuwien.ac.at> |
| NNTP-Posting-Host | 65.200.157.178 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1320944372 9687 127.0.0.1 (10 Nov 2011 16:59:32 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Thu, 10 Nov 2011 16:59:32 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | n6g2000vbg.googlegroups.com; posting-host=65.200.157.178; posting-account=-0NdkgoAAADFKzFeHDvrZjHDggKUw9Sf |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-Header-Order | ARLUEHCNK |
| X-HTTP-UserAgent | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3),gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:9828 |
Show key headers only | View raw
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
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