You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/04/14 00:21:15 UTC
[21/28] git commit: Revert "added review comments for the fix for bug
USERGRID-22, ICLA - Malaka Mahanama"
Revert "added review comments for the fix for bug USERGRID-22, ICLA - Malaka Mahanama"
This reverts commit e186568e0f32a78fee53b2006691337def1729e3.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/e0dfaad6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/e0dfaad6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/e0dfaad6
Branch: refs/pull/105/head
Commit: e0dfaad6576ea86a0463f434e8317b07482c053d
Parents: 89da8ed
Author: Malaka <ma...@gmail.com>
Authored: Mon Apr 14 02:46:01 2014 +0530
Committer: Malaka <ma...@gmail.com>
Committed: Mon Apr 14 02:46:01 2014 +0530
----------------------------------------------------------------------
.../java/org/apache/usergrid/persistence/Query.java | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/e0dfaad6/stack/core/src/main/java/org/apache/usergrid/persistence/Query.java
----------------------------------------------------------------------
diff --git a/stack/core/src/main/java/org/apache/usergrid/persistence/Query.java b/stack/core/src/main/java/org/apache/usergrid/persistence/Query.java
index a2c97a6..23970f0 100644
--- a/stack/core/src/main/java/org/apache/usergrid/persistence/Query.java
+++ b/stack/core/src/main/java/org/apache/usergrid/persistence/Query.java
@@ -373,9 +373,8 @@ public class Query {
for ( Identifier identifier : identifiers ) {
//part of fix for the bug USERGRID-22 (to prevent a null pointer exception).
- if ( identifier == null ){
- return false;
- }
+ if (identifier == null)
+ { return false; }
if ( !identifier.isEmail() && !identifier.isName() ) {
return false;
@@ -421,9 +420,7 @@ public class Query {
for ( Identifier identifier : identifiers ) {
//part of fix for the bug USERGRID-22 (to prevent a null pointer exception).
- if ( identifier == null ){
- return true;
- }
+ if (identifier == null){ return true; }
if ( !identifier.isUUID() ) {
return false;
@@ -455,9 +452,8 @@ public class Query {
return null;
}
//part of fix for the bug USERGRID-22 (to prevent a null pointer exception).
- if( identifiers.get( 0 ) == null ){
- return null;
- }
+ if(identifiers.get( 0 )==null)
+ { return null; }
return ( identifiers.get( 0 ).getUUID() );
}