Author: saces
Date: 2008-04-15 17:51:02 +0000 (Tue, 15 Apr 2008)
New Revision: 19352

Modified:
   trunk/plugins/KeyExplorer/KeyExplorer.java
Log:
fix npe on void plugin fcp mesage

Modified: trunk/plugins/KeyExplorer/KeyExplorer.java
===================================================================
--- trunk/plugins/KeyExplorer/KeyExplorer.java  2008-04-15 17:47:04 UTC (rev 
19351)
+++ trunk/plugins/KeyExplorer/KeyExplorer.java  2008-04-15 17:51:02 UTC (rev 
19352)
@@ -51,6 +51,11 @@

        public void handle(PluginReplySender replysender, SimpleFieldSet 
params, Bucket data, int accesstype) {

+               if (params == null) {
+                       sendError(replysender, 0, "Got void message");
+                       return;
+               }
+               
                String command = params.get("Command");

                if (command == null || command.trim().length() == 0) {


Reply via email to