Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java error - MinimServer 0.8.5.2 update 125
21-10-2018, 21:36
Post: #11
RE: Java error - MinimServer 0.8.5.2 update 125
(21-10-2018 21:27)sflaor Wrote:  
(20-10-2018 13:17)simoncn Wrote:  If you use a single quote on its own, MinimServer should produce an error message instead of a NullPointerException. This will be fixed in the next update. Thanks for letting me know about this.

Simon, if I want to add double quote to the list, would it be """? Or would I want to wrap it in single quotes like '"'?

""" does not work. From what I can tell, what does seem to work (in the sense that the error does not occur) is \". It seems the backslash tells the system to interpret the double quote as a value, not as some part of code.
Find all posts by this user
Quote this message in a reply
21-10-2018, 22:04
Post: #12
RE: Java error - MinimServer 0.8.5.2 update 125
(21-10-2018 21:36)Pepsican Wrote:  """ does not work. From what I can tell, what does seem to work (in the sense that the error does not occur) is \". It seems the backslash tells the system to interpret the double quote as a value, not as some part of code.

Thanks. The backslash is used as an "escape" character for many scenarios like this. Maybe Simon can confirm.
Find all posts by this user
Quote this message in a reply
22-10-2018, 07:24
Post: #13
RE: Java error - MinimServer 0.8.5.2 update 125
If you want a string that includes a single quote, you should wrap it in double quotes. If you want a string that includes a double quote, you should wrap it in single quotes.

If you specify \", this is what you will get. The \ is not treated as an escape character. It doesn't produce an error because there is special treatment of ' and " characters that are not at the start of the string, for compatibility with previous versions of MinimServer.
Find all posts by this user
Quote this message in a reply
23-10-2018, 11:02
Post: #14
RE: Java error - MinimServer 0.8.5.2 update 125
The NullPointerException is fixed in update 126. Instead of this, you will get a message saying there is a syntax error.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)