Commit 55de9173 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed NPE when destroying the plugin.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9276 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0b1b7b18
...@@ -123,7 +123,9 @@ public class SearchPlugin implements Component, Plugin, PropertyEventListener { ...@@ -123,7 +123,9 @@ public class SearchPlugin implements Component, Plugin, PropertyEventListener {
componentManager = null; componentManager = null;
} }
catch (Exception e) { catch (Exception e) {
componentManager.getLog().error(e); if (componentManager != null) {
componentManager.getLog().error(e);
}
} }
serviceName = null; serviceName = null;
userManager = null; userManager = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment