Re: Object IllegalStateException Problem
- From: ptreves <ptreves@xxxxxxxxx>
- Date: Thu, 10 Nov 2011 08:59:32 -0800 (PST)
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
.
- Follow-Ups:
- Re: Object IllegalStateException Problem
- From: Lew
- Re: Object IllegalStateException Problem
- From: Patricia Shanahan
- Re: Object IllegalStateException Problem
- References:
- Object IllegalStateException Problem
- From: ptreves
- Re: Object IllegalStateException Problem
- From: Andreas Leitgeb
- Object IllegalStateException Problem
- Prev by Date: Re: Object IllegalStateException Problem
- Next by Date: Re: Object IllegalStateException Problem
- Previous by thread: Re: Object IllegalStateException Problem
- Next by thread: Re: Object IllegalStateException Problem
- Index(es):
Relevant Pages
|