mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JBR-4774 macOS: SIGILL at [libsystem_kernel] __kill in NPE / VolatileSurfaceManager.displayChanged / __displaycb_handle_block_invoke
Added null check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user