summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-04-17 15:50:35 +0100
committerNoel Power <noel.power@novell.com>2012-04-17 15:52:27 +0100
commit45b57a9dfb5df8b9c4a1974cb6e848d4f3b57ea3 (patch)
treedaf46f83a036ba7197213f6ab1def7f40db49aa3
parentcf1e3b9132a804bd5d7eb0294c1d7e4f0254f52b (diff)
prevent getFileURL() & getLinkTargetURL() asserting for broken links
-rw-r--r--ucb/source/ucp/file/shell.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index 1cb03b32e141..1907d168cb12 100644
--- a/ucb/source/ucp/file/shell.cxx
+++ b/ucb/source/ucp/file/shell.cxx
@@ -2491,7 +2491,10 @@ shell::getv(
osl_FileStatus_Mask_FileURL |
osl_FileStatus_Mask_Type |
osl_FileStatus_Mask_LinkTargetURL );
- aDirItem.getFileStatus( aFileStatus );
+
+ osl::FileBase::RC aRes = aDirItem.getFileStatus( aFileStatus );
+ if ( aRes == osl::FileBase::E_None )
+ {
aUnqPath = aFileStatus.getFileURL();
// If the directory item type is a link retrieve the type of the target
@@ -2538,7 +2541,7 @@ shell::getv(
}
}
deregisterNotifier( aUnqPath,pNotifier );
-
+ }
XRow_impl* p = new XRow_impl( this,seq );
return uno::Reference< sdbc::XRow >( p );
}