You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/04/17 14:55:50 UTC

svn commit: r1468879 - /openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm

Author: hdu
Date: Wed Apr 17 12:55:50 2013
New Revision: 1468879

URL: http://svn.apache.org/r1468879
Log:
allow Mac port running with completely inactive AppleRemote

Modified:
    openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm

Modified: openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm?rev=1468879&r1=1468878&r2=1468879&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm (original)
+++ openoffice/trunk/main/vcl/aqua/source/app/vclnsapp.mm Wed Apr 17 12:55:50 2013
@@ -450,7 +450,7 @@
 {
     (void)pNotification;
     SalData* pSalData = GetSalData();
-    if (pSalData->mpMainController->remoteControl)
+    if( pSalData->mpMainController && pSalData->mpMainController->remoteControl)
     {
         // [remoteControl startListening: self];
         // does crash because the right thing to do is 
@@ -476,7 +476,7 @@
 {
     (void)pNotification;
     SalData* pSalData = GetSalData();
-    if (pSalData->mpMainController->remoteControl)
+    if( pSalData->mpMainController && pSalData->mpMainController->remoteControl)
     {
         // [remoteControl stopListening: self];
         // does crash because the right thing to do is