diff --git a/src/OpenTK/Platform/Android/AndroidGraphicsContext.cs b/src/OpenTK/Platform/Android/AndroidGraphicsContext.cs index f4fd54dc6d..c4edb69d42 100644 --- a/src/OpenTK/Platform/Android/AndroidGraphicsContext.cs +++ b/src/OpenTK/Platform/Android/AndroidGraphicsContext.cs @@ -57,7 +57,7 @@ public class AndroidWindow : IWindowInfo, IDisposable public bool HasSurface { - get { return eglWindowInfo.Surface != IntPtr.Zero; } + get { return eglWindowInfo != null && eglWindowInfo.Surface != IntPtr.Zero; } } public ISurfaceHolder Holder {