Display: Fixed a NPE when create() fails on context creation
This commit is contained in:
parent
31079a10c1
commit
7adffdb0cc
|
@ -277,7 +277,7 @@ public final class Display {
|
|||
return;
|
||||
}
|
||||
try {
|
||||
if (context.isCurrent()) {
|
||||
if (context != null && context.isCurrent()) {
|
||||
context.releaseDrawable();
|
||||
Context.releaseCurrentContext();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue