grisu / gricli

Grisu commandline client
7 stars 2 forks source link

Null pointer for unset memory #158

Closed sina-masoud-ansari closed 13 years ago

sina-masoud-ansari commented 13 years ago

gricli> set debug true gricli> unset memory
command failed. Either connection to server failed, or this is gricli bug. Please send /Users/local/EC/smas036/.grisu.beta/gricli.debug to eresearch-admin@auckland.ac.nz together with description of what triggered the problem java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1140) at java.util.regex.Matcher.reset(Matcher.java:291) at java.util.regex.Matcher.(Matcher.java:211) at java.util.regex.Pattern.matcher(Pattern.java:888) at grisu.gricli.environment.MemoryVar.fromString(MemoryVar.java:21) at grisu.gricli.environment.MemoryVar.fromString(MemoryVar.java:8) at grisu.gricli.environment.ScalarVar.fromStrings(ScalarVar.java:29) at grisu.gricli.environment.GricliVar.set(GricliVar.java:55) at grisu.gricli.command.SetCommand.execute(SetCommand.java:32) at grisu.gricli.Gricli.runCommand(Gricli.java:230) at grisu.gricli.Gricli.executionLoop(Gricli.java:92) at grisu.gricli.Gricli.main(Gricli.java:204) gricli>

sina-masoud-ansari commented 13 years ago

Ok, I recall this was defined behaviour for required values, maybe a statement:

Cannot unset (reset?) 'x'. It is a required job property.