Commits

Anonymous committed 1cf79b2

CWS-TOOLING: integrate CWS aquafilepicker03
2009-01-16 00:15:29 +0100 fheckl r266397 : Issue 90219 fixed

Comments (0)

Files changed (1)

fpicker/source/aqua/SalAquaFilePicker.cxx

     sal_Int16 retVal = 0;
 
     implInitialize();
+    
+    // if m_pDialog is nil after initialization, something must have gone wrong before
+    if (m_pDialog == nil) {
+        throw uno::RuntimeException(rtl::OUString::createFromAscii("The dialog was not properly initialized!"), static_cast< XFilePicker* >( this ));
+    }
 
     if (m_pFilterHelper) {
         m_pFilterHelper->SetFilters();