6983562: Two java/awt tests failing just on jdk7b108

Reviewed-by: art, denis, dcherepanov
This commit is contained in:
Sergey Bylokhov 2011-04-15 16:51:25 +04:00
parent d9212b0817
commit 30d9e9d6dc
2 changed files with 6 additions and 2 deletions

View File

@ -317,7 +317,9 @@ void AwtButton::_SetLabel(void *param)
badAlloc = 1;
} else {
c->SetText(labelStr);
JNU_ReleaseStringPlatformChars(env, label, labelStr);
if (label != NULL) {
JNU_ReleaseStringPlatformChars(env, label, labelStr);
}
}
}

View File

@ -384,7 +384,9 @@ void AwtCheckbox::_SetLabel(void *param)
{
c->SetText(labelStr);
c->VerifyState();
JNU_ReleaseStringPlatformChars(env, label, labelStr);
if (label != NULL) {
JNU_ReleaseStringPlatformChars(env, label, labelStr);
}
}
}