Minor bug fix in SampleApp

http://codereview.appspot.com/5992081/



git-svn-id: http://skia.googlecode.com/svn/trunk@3638 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
index 1cd9c67..3ab9e89 100644
--- a/samplecode/SampleApp.cpp
+++ b/samplecode/SampleApp.cpp
@@ -659,7 +659,9 @@
     SkDebugf("    msaa: request multisampling with the given sample count.\n");
 }
 
-SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager) : INHERITED(hwnd) {
+SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager) 
+    : INHERITED(hwnd)
+    , fDevManager(NULL) {
 
     SkGMRegistyToSampleRegistry();
     {
@@ -1952,6 +1954,7 @@
     }
 
     if (gDeviceTypeIsGPU[fDeviceType] &&
+        NULL != fDevManager &&
         fDevManager->getGrRenderTarget()->numSamples() > 0) {
         title.appendf(" [MSAA: %d]",
                        fDevManager->getGrRenderTarget()->numSamples());