JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke

Added null check
This commit is contained in:
Alexey Ushakov
2022-08-27 09:16:43 +02:00
committed by jbrbot
parent fd8cc47e53
commit d33a4eb42c

View File

@@ -359,7 +359,9 @@ public abstract class VolatileSurfaceManager
// Note that getBackupSurface may set sdAccel to null so we have to invalidate it before
SurfaceData oldData = sdAccel;
sdAccel = null;
oldData.invalidate();
if (oldData != null) {
oldData.invalidate();
}
}
// Update graphicsConfig for the vImg in case it changed due to
// this display change event