@@ -103,7 +103,7 @@ public String create(@Context GraphManager manager,
103103
104104 jsonGraphSpace .checkCreate (false );
105105
106- String creator = "test " ;
106+ String creator = "admin " ;
107107 GraphSpace exist = manager .graphSpace (jsonGraphSpace .name );
108108 E .checkArgument (exist == null , "The graph space '%s' has existed" ,
109109 jsonGraphSpace .name );
@@ -370,17 +370,17 @@ public GraphSpace toGraphSpace(String creator) {
370370 graphSpace .computeMemoryLimit (this .computeMemoryLimit );
371371 graphSpace .operatorImagePath (this .operatorImagePath );
372372 graphSpace .internalAlgorithmImageUrl (this .internalAlgorithmImageUrl );
373-
374- graphSpace .configs (this .configs );
375-
373+ if ( this . configs != null ) {
374+ graphSpace .configs (this .configs );
375+ }
376376 return graphSpace ;
377377 }
378378
379379 public String toString () {
380380 return String .format ("JsonGraphSpace{name=%s, description=%s, " +
381381 "cpuLimit=%s, memoryLimit=%s, " +
382- "storageLimit=%s, oltpNamespace=%s" +
383- "olapNamespace=%s, storageNamespace=%s" +
382+ "storageLimit=%s, oltpNamespace=%s, " +
383+ "olapNamespace=%s, storageNamespace=%s, " +
384384 "maxGraphNumber=%s, maxRoleNumber=%s, " +
385385 "configs=%s, operatorImagePath=%s, " +
386386 "internalAlgorithmImageUrl=%s}" , this .name ,
0 commit comments