diff --git a/Platform/OpenCanopy/OpenCanopy.c b/Platform/OpenCanopy/OpenCanopy.c index 88804d12af61dc2563218a00fb5afb09f761e796..55c543a893575de79625282e0293ae7efb717771 100644 --- a/Platform/OpenCanopy/OpenCanopy.c +++ b/Platform/OpenCanopy/OpenCanopy.c @@ -883,7 +883,9 @@ GuiFlushScreen ( ASSERT (DrawContext != NULL); ASSERT (DrawContext->Screen != NULL); - GuiRedrawPointer (DrawContext); + if (mPointerContext != NULL) { + GuiRedrawPointer (DrawContext); + } NumValidDrawReqs = mNumValidDrawReqs; ASSERT (NumValidDrawReqs <= ARRAY_SIZE (mDrawRequests));