Re: Object IllegalStateException Problem



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
.