summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2009-02-19 12:12:48 +0000
committerOliver Bolte <obo@openoffice.org>2009-02-19 12:12:48 +0000
commit3a9a8a4fd537e348d1e0ef48aeac9d434a2b10ad (patch)
tree99632588a3e8e58e0069f51b765bb5a50af84382 /fpicker
parentbcfe6aa2d00b68d8483e4f4b2de5f7285ebe3a4e (diff)
CWS-TOOLING: integrate CWS aquafilepicker03
2009-01-16 00:15:29 +0100 fheckl r266397 : Issue 90219 fixed
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/SalAquaFilePicker.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpicker/source/aqua/SalAquaFilePicker.cxx b/fpicker/source/aqua/SalAquaFilePicker.cxx
index 9a8f711925..92183a28ab 100644
--- a/fpicker/source/aqua/SalAquaFilePicker.cxx
+++ b/fpicker/source/aqua/SalAquaFilePicker.cxx
@@ -190,6 +190,11 @@ sal_Int16 SAL_CALL SalAquaFilePicker::execute() throw( uno::RuntimeException )
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();