clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject git commit: CLEREZZA-921: checking if uripath is null
Date Wed, 28 May 2014 14:34:56 GMT
Repository: clerezza
Updated Branches:
  refs/heads/master 9e492d156 -> dd0307434


CLEREZZA-921: checking if uripath is null

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

Branch: refs/heads/master
Commit: dd0307434e148fe08d2ef4deeddcabe8bdfd431f
Parents: 9e492d1
Author: reto <reto@apache.org>
Authored: Wed May 28 16:33:44 2014 +0200
Committer: reto <reto@apache.org>
Committed: Wed May 28 16:34:44 2014 +0200

----------------------------------------------------------------------
 .../platform/graphnodeprovider/PlatformGraphNodeProvider.scala     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/clerezza/blob/dd030743/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/PlatformGraphNodeProvider.scala
----------------------------------------------------------------------
diff --git a/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/PlatformGraphNodeProvider.scala
b/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/PlatformGraphNodeProvider.scala
index 6918a5e..e1b4630 100644
--- a/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/PlatformGraphNodeProvider.scala
+++ b/platform.graphnodeprovider/src/main/scala/org/apache/clerezza/platform/graphnodeprovider/PlatformGraphNodeProvider.scala
@@ -122,7 +122,7 @@ class PlatformGraphNodeProvider extends GraphNodeProvider with Logging
{
 
     addToUnion(cgGraph)
 
-    if (isLocal && uriPath.startsWith("/user/")) {
+    if (isLocal && (uriPath != null) && uriPath.startsWith("/user/")) {
       val nextSlash = uriPath.indexOf('/',6)    
       if (nextSlash != -1) {
         val userName = uriPath.substring(6, nextSlash)


Mime
View raw message