ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [07/50] incubator-ignite git commit: # IGNITE-748 Fixed check for empty parts.
Date Fri, 24 Apr 2015 01:14:40 GMT
# IGNITE-748 Fixed check for empty parts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/4e7a691a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/4e7a691a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/4e7a691a

Branch: refs/heads/ignite-gg-9830
Commit: 4e7a691a22c5a8b19c564307d0a125b978a35b6e
Parents: b2cae73
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Apr 22 11:50:22 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Apr 22 11:50:22 2015 +0700

----------------------------------------------------------------------
 .../java/org/apache/ignite/schema/generator/CodeGenerator.java    | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/4e7a691a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
----------------------------------------------------------------------
diff --git a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
index ebfe682..f8901d2 100644
--- a/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
+++ b/modules/schema-import/src/main/java/org/apache/ignite/schema/generator/CodeGenerator.java
@@ -75,6 +75,9 @@ public class CodeGenerator {
 
         String[] parts = split ? identifier.split("\\.") : new String[] {identifier};
 
+        if (parts.length == 0)
+            throw new IllegalStateException(msg + " could not has empty parts!");
+
         for (String part : parts) {
             if (part.isEmpty())
                 throw new IllegalStateException(msg + " could not has empty parts!");


Mime
View raw message