| Summary: | NPE when AbsoluteFilePathBrowseActionHandler does not have any param | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Ling Hao <ling.hao> |
| Component: | Sapphire | Assignee: | Konstantin Komissarchik <konstantin> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | konstantin, ram.venkataswamy |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Should be fixed in 0.3.1 release. Fixed in 0.3.1 and 0.4 streams. Please verify. verified Closing. |
In the GalleryEditor.sdef: <action-handler> <action>Sapphire.Browse</action> <impl>AbsoluteFilePathBrowseActionHandler</impl> <param> <name>extensions</name> <value>jar,zip</value> </param> </action-handler> Remove the <param> block and see the following NPE: java.lang.NullPointerException at org.eclipse.sapphire.ui.swt.renderer.actions.AbsoluteFilePathBrowseActionHandl er.browse(AbsoluteFilePathBrowseActionHandler.java:111) at org.eclipse.sapphire.ui.SapphireBrowseActionHandler.run(SapphireBrowseActionHa ndler.java:37) at org.eclipse.sapphire.ui.SapphireActionHandler.execute(SapphireActionHandler.ja va:86) Note: this was originally Ram's bug 13031195. But that was fixed with adding <param>. Logged in 0.4 since NPE should be happen in this case.