cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject [02/10] cassandra git commit: Avoid calls to `getCause` on `Throwable` as it might result into NPE
Date Mon, 23 May 2016 22:12:57 GMT
Avoid calls to `getCause` on `Throwable` as it might result into NPE

Patch by Alex Petrov; reviewed by Joel Knighton for CASSANDRA-11272


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/f463fed2
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/f463fed2
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/f463fed2

Branch: refs/heads/cassandra-3.0
Commit: f463fed234ce5bd9c536ac5fdf51c3555b9af805
Parents: e0c6a9e
Author: Alex Petrov <oleksandr.petrov@gmail.com>
Authored: Fri May 20 20:02:48 2016 +0200
Committer: Josh McKenzie <jmckenzie@apache.org>
Committed: Mon May 23 18:10:23 2016 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/f463fed2/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index dedc823..82d7c8f 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -1255,7 +1255,7 @@ public class StorageService extends NotificationBroadcasterSupport implements
IE
             @Override
             public void onFailure(Throwable e)
             {
-                logger.warn("Error during bootstrap: " + e.getCause().getMessage(), e.getCause());
+                logger.warn("Error during bootstrap.", e);
             }
         });
         try


Mime
View raw message