diff options
author | Philipp Lohmann <pl@openoffice.org> | 2009-11-17 10:43:07 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2009-11-17 10:43:07 +0000 |
commit | 70dfafd85a420e77094c5c6e3b50c03c7672b413 (patch) | |
tree | 184be795c7eb9ae23aed37b304a849ea4fc7ada1 /fpicker | |
parent | 8a311577cec78769d85c27fbe4b965ed2d3d6d91 (diff) |
#i106863# directory can be empty
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/aqua/SalAquaPicker.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fpicker/source/aqua/SalAquaPicker.cxx b/fpicker/source/aqua/SalAquaPicker.cxx index aaf311de020a..0188fc296af0 100644 --- a/fpicker/source/aqua/SalAquaPicker.cxx +++ b/fpicker/source/aqua/SalAquaPicker.cxx @@ -208,7 +208,10 @@ int SalAquaPicker::run() } if (retVal == NSFileHandlingPanelOKButton) { - implsetDisplayDirectory([[NSURL fileURLWithPath:[m_pDialog directory]] OUStringForInfo:FULLPATH]); + NSString* pDir = [m_pDialog directory]; + if (pDir) { + implsetDisplayDirectory([[NSURL fileURLWithPath:pDir] OUStringForInfo:FULLPATH]); + } } DBG_PRINT_EXIT(CLASS_NAME, __func__, retVal); |