Fixed a JS crash.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3726 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
cabe9792c7
commit
0ffdb23b86
@ -1149,6 +1149,8 @@ static BOOL JSNewNSDictionaryValue(JSContext *context, NSDictionary *dictionary,
|
||||
jschar *chars = NULL;
|
||||
size_t length;
|
||||
|
||||
if (string == NULL) return nil;
|
||||
|
||||
chars = JS_GetStringChars(string);
|
||||
length = JS_GetStringLength(string);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user