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. """ 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. |
|||
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. |
|||
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. |
|||
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.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)