Open a file in Ocelot, edit a target and save to a new file by using the "Save as" command.
The title bar displays the name of the new file.
However editing the document and using the "Save" command result in saving the changes to the original document.
When performing the "Save as" command, the openFile field in OcelotApp wasn't replaced with the new file. So subsequent "Save" commands kept saving changes to the original file.
I've just added a line that updates the openFile field at the end of the saving operation.
This issue is still reproduceable in my rc5 build. It's actually quite serious as now it doesn't seem to save at all even if you do not use Save As.
I thought this was platform-dependent, but it's not: it's configuration-dependent. It occurs when there are no plugins installed.
Actually I'm not quite sure what's going on here, this appears to be an exception thrown during a typecast.
Fixed. This bug was occurring when there were no plugins installed that producing timing data. In that case, the null Double value was being autoboxed to double to pass to OkapiXliffService#setTime; this caused a NullPointerException that was logged to console and aborted the save action.
Well done! I wasn't able to spot that error.
Just taken a note for the next time: always run at least one test with no plugins installed.