https://bz.apache.org/bugzilla/show_bug.cgi?id=66878

--- Comment #2 from 大雨哗啦啦 <1500634...@qq.com> ---
// Target converted in URI
                URI target = PackagingURIHelper.toURI("http://invalid.uri";); //
dummy url
                String value =
element.getAttribute(PackageRelationship.TARGET_ATTRIBUTE_NAME);
                try {
                    // when parsing of the given uri fails, we can either
                    // ignore this relationship, which leads to
IllegalStateException
                    // later on, or use a dummy value and thus enable
processing of the
                    // package
                    target = PackagingURIHelper.toURI(value);
                } catch (URISyntaxException e) {
                    LOG.atError().withThrowable(e).log("Cannot convert {} in a
valid relationship URI-> dummy-URI used", value);
                }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to