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;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (context.isCurrent()) {
|
if (context != null && context.isCurrent()) {
|
||||||
context.releaseDrawable();
|
context.releaseDrawable();
|
||||||
Context.releaseCurrentContext();
|
Context.releaseCurrentContext();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue