aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject aries-rsa git commit: Fix possible NPE
Date Fri, 11 Mar 2016 20:10:03 GMT
Repository: aries-rsa
Updated Branches:
  refs/heads/master f7e799df3 -> 15f4e7763


Fix possible NPE


Project: http://git-wip-us.apache.org/repos/asf/aries-rsa/repo
Commit: http://git-wip-us.apache.org/repos/asf/aries-rsa/commit/15f4e776
Tree: http://git-wip-us.apache.org/repos/asf/aries-rsa/tree/15f4e776
Diff: http://git-wip-us.apache.org/repos/asf/aries-rsa/diff/15f4e776

Branch: refs/heads/master
Commit: 15f4e7763d73004d7832aa43bcdca67eb7713a9c
Parents: f7e799d
Author: Christian Schneider <chris@die-schneider.net>
Authored: Fri Mar 11 21:09:55 2016 +0100
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Fri Mar 11 21:09:55 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/aries/rsa/core/ExportRegistrationImpl.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aries-rsa/blob/15f4e776/rsa/src/main/java/org/apache/aries/rsa/core/ExportRegistrationImpl.java
----------------------------------------------------------------------
diff --git a/rsa/src/main/java/org/apache/aries/rsa/core/ExportRegistrationImpl.java b/rsa/src/main/java/org/apache/aries/rsa/core/ExportRegistrationImpl.java
index 5a1dd66..0f0dcef 100644
--- a/rsa/src/main/java/org/apache/aries/rsa/core/ExportRegistrationImpl.java
+++ b/rsa/src/main/java/org/apache/aries/rsa/core/ExportRegistrationImpl.java
@@ -98,7 +98,9 @@ public class ExportRegistrationImpl implements ExportRegistration {
         }
 
         rsaCore.removeExportRegistration(this);
-        exportReference.close();
+        if (exportReference != null) {
+            exportReference.close();
+        }
         parent.removeInstance();
     }
 


Mime
View raw message