Apache OpenOffice (AOO) Bugzilla – Issue 30282
loadComponentFromUrl does not return null anymore
Last modified: 2013-02-24 21:06:40 UTC
The following BASIC code runs in OOo1.1.2 but fails in 680m41, where [path] is a nonexistent file. dim args(0) as new com.sun.star.beans.PropertyValue dim path$ dim component as object path = "(nonexistent file)" component = thiscomponent.currentcontroller.frame.loadcomponentfromurl(path,"_blank",0,args()) if isnull(component) then msgbox "Error opening " & path
SW->kasey: the method lodComponentFromURL throws the expected IllegalArgumentException in your case from src680mXX (on the way to Ooo2.0), which wasn't thrown in previous version srx645mXX (OOo1.x.x). This is the expected behaviour and no issue :-)
Understood. So actually OOo1.1.2's behavior was a defect, even though it was pretty darn convenient.