chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r761098 - /hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java
Date Wed, 01 Apr 2009 22:44:46 GMT
Author: eyang
Date: Wed Apr  1 22:44:45 2009
New Revision: 761098

URL: http://svn.apache.org/viewvc?rev=761098&view=rev
Log:
CHUKWA-40. Check for null pointer exception before unregister adaptor. (Contribute By Jerome
Boulon via Eric Yang)

Modified:
    hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java

Modified: hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java?rev=761098&r1=761097&r2=761098&view=diff
==============================================================================
--- hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java
(original)
+++ hadoop/chukwa/trunk/src/java/org/apache/hadoop/chukwa/datacollection/controller/ChukwaAgentController.java
Wed Apr  1 22:44:45 2009
@@ -287,7 +287,9 @@
       throws IOException {
     syncWithAgent();
     ChukwaAgentController.Adaptor a = runningAdaptors.remove(adaptorID);
-    a.unregister();
+    if ( a != null ) {
+      a.unregister();
+    }
     return a;
 
   }



Mime
View raw message