Display: Fixed a NPE when create() fails on context creation

This commit is contained in:
Elias Naur 2007-01-13 19:24:05 +00:00
parent 31079a10c1
commit 7adffdb0cc
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ public final class Display {
return;
}
try {
if (context.isCurrent()) {
if (context != null && context.isCurrent()) {
context.releaseDrawable();
Context.releaseCurrentContext();
}