Try removing the condition on getOpenGLView to prevent crashes...