openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r736834 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java
Date Thu, 22 Jan 2009 22:36:03 GMT
Author: struberg
Date: Thu Jan 22 14:36:03 2009
New Revision: 736834

URL: http://svn.apache.org/viewvc?rev=736834&view=rev
Log:
OWB-57 fix potential NPE

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java?rev=736834&r1=736833&r2=736834&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/event/TransactionalNotifier.java
Thu Jan 22 14:36:03 2009
@@ -103,7 +103,7 @@
     {
         final int prime = 31;
         int result = 1;
-        result = prime * result + ((event.getClass() == null) ? 0 : event.getClass().hashCode());
+        result = prime * result + ((event == null) ? 0 : event.getClass().hashCode());
         return result;
     }
 
@@ -121,9 +121,9 @@
         if (getClass() != obj.getClass())
             return false;
         final TransactionalNotifier other = (TransactionalNotifier) obj;
-        if (event.getClass() == null)
+        if (event == null)
         {
-            if (other.event.getClass() != null)
+            if (other.event != null)
                 return false;
         }
         else if (!event.getClass().equals(other.event.getClass()))



Mime
View raw message