Author: mareshkau
Date: 2011-03-03 07:17:28 -0500 (Thu, 03 Mar 2011)
New Revision: 29464
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/Flasher.java
Log:
https://issues.jboss.org/browse/JBIDE-8115, fix NPE
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/Flasher.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/Flasher.java 2011-03-03
10:17:09 UTC (rev 29463)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/Flasher.java 2011-03-03
12:17:28 UTC (rev 29464)
@@ -63,6 +63,7 @@
private void saveOldStyle(List<FlasherData> flasherData){
for (FlasherData flasherData2 : flasherData) {
nsIDOMElement domElement = flasherData2.getElement();
+ if(domElement==null) continue;
String oldstyle = domElement.getAttribute(XulRunnerEditor.STYLE_ATTR);
domElement.setAttribute(XulRunnerEditor.STYLE_ATTR,
domElement.getAttribute(XulRunnerEditor.STYLE_ATTR) + ';'