You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2014/05/03 22:41:34 UTC
[1/2] git commit: fix npe if configURL is null (new URL(null) throws)
Repository: cassandra
Updated Branches:
refs/heads/cassandra-2.1 b53442b20 -> 38a48b123
fix npe if configURL is null (new URL(null) throws)
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3fb2dcdf
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3fb2dcdf
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3fb2dcdf
Branch: refs/heads/cassandra-2.1
Commit: 3fb2dcdf06fa74db14891abb76a447c040f32436
Parents: 3047ab6
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Sat May 3 16:39:16 2014 -0400
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Sat May 3 16:39:16 2014 -0400
----------------------------------------------------------------------
src/java/org/apache/cassandra/locator/SnitchProperties.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/3fb2dcdf/src/java/org/apache/cassandra/locator/SnitchProperties.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/locator/SnitchProperties.java b/src/java/org/apache/cassandra/locator/SnitchProperties.java
index 52268da..36fec7f 100644
--- a/src/java/org/apache/cassandra/locator/SnitchProperties.java
+++ b/src/java/org/apache/cassandra/locator/SnitchProperties.java
@@ -38,9 +38,12 @@ public class SnitchProperties
String configURL = System.getProperty(RACKDC_PROPERTY_FILENAME);
try
{
- URL url = new URL(configURL);
+ URL url;
if (configURL == null)
url = SnitchProperties.class.getClassLoader().getResource(RACKDC_PROPERTY_FILENAME);
+ else
+ url = new URL(configURL);
+
stream = url.openStream(); // catch block handles potential NPE
properties.load(stream);
}
[2/2] git commit: Merge branch 'cassandra-2.0' into cassandra-2.1
Posted by db...@apache.org.
Merge branch 'cassandra-2.0' into cassandra-2.1
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/38a48b12
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/38a48b12
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/38a48b12
Branch: refs/heads/cassandra-2.1
Commit: 38a48b1238fb57278b87215ff7046daf7f49920d
Parents: b53442b 3fb2dcd
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Sat May 3 16:40:14 2014 -0400
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Sat May 3 16:40:14 2014 -0400
----------------------------------------------------------------------
src/java/org/apache/cassandra/locator/SnitchProperties.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/38a48b12/src/java/org/apache/cassandra/locator/SnitchProperties.java
----------------------------------------------------------------------