Author: vrubezhny
Date: 2010-11-16 19:58:56 -0500 (Tue, 16 Nov 2010)
New Revision: 26654
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/WebKbPlugin.java
Log:
JBIDE-7621
NullPointerExceptions occures in WebKbPlugin while the Eclipse is shutting down
Issue is fixed
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/WebKbPlugin.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/WebKbPlugin.java 2010-11-16
23:43:22 UTC (rev 26653)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/WebKbPlugin.java 2010-11-17
00:58:56 UTC (rev 26654)
@@ -114,8 +114,12 @@
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+
+ // Fix for JBIDE-7621: The following line is moved to the very end of the method
+ // due to prevent NullPointerException to be thrown in cleanObsoleteFiles() method
--->>>
plugin = null;
- super.stop(context);
+ // <<<---
}
/**