[rfc][icedtea-web][policyeditor] Fix for NPE when trying to open a file
Andrew Azores
aazores at redhat.com
Thu Mar 27 14:45:28 UTC 2014
Hi,
This workflow:
1) Open PolicyEditor with no filepath
2) Make changes
3) File>Open, without saving first
4) Select "Yes" to save changes
Currently results in:
5) NPE
due to the file field still being null. With this patch, it is the
following:
5) File chooser appears for Save As action
6) Save file somewhere, or cancel
7) If file chooser was not cancelled, a new file chooser appears for the
Open action. If it was cancelled, return back to the editor, with
changes preserved but not saved to file
Thanks,
--
Andrew A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: policyeditor-open-with-changes-npe.patch
Type: text/x-patch
Size: 1159 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140327/97032f74/policyeditor-open-with-changes-npe.patch>
More information about the distro-pkg-dev
mailing list