зеркало из https://github.com/mozilla/pjs.git
Fixing bug 282447: patch from Attila Szegedi <szegedia@freemail.hu> to fix NullPointerException.
This commit is contained in:
Родитель
69f348e3ed
Коммит
4130b9bffa
|
@ -893,9 +893,12 @@ WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
|
|||
|
||||
static void reportConversionError(Object value, Class type)
|
||||
{
|
||||
throw Context.reportRuntimeError2
|
||||
("msg.conversion.not.allowed",
|
||||
value.toString(), JavaMembers.javaSignature(type));
|
||||
// It uses String.valueOf(value), not value.toString() since
|
||||
// value can be null, bug 282447.
|
||||
throw Context.reportRuntimeError2(
|
||||
"msg.conversion.not.allowed",
|
||||
String.valueOf(value),
|
||||
JavaMembers.javaSignature(type));
|
||||
}
|
||||
|
||||
private void writeObject(ObjectOutputStream out)
|
||||
|
|
Загрузка…
Ссылка в новой задаче