mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[485239] fixed NPE
This commit is contained in:
parent
9bbecd9e8f
commit
577c43d60c
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class XtextPlatformResourceURIHandler extends URIHandlerImpl {
|
|||
|
||||
@Override
|
||||
public URI resolve(URI uri) {
|
||||
if (resolve && uri.isRelative() && uri.hasRelativePath() && !resourceSet.getPackageRegistry().containsKey(uri.trimFragment().toString())) {
|
||||
if (resolve && baseURI != null && uri.isRelative() && uri.hasRelativePath() && !resourceSet.getPackageRegistry().containsKey(uri.trimFragment().toString())) {
|
||||
URI result = uri.resolve(baseURI);
|
||||
if (baseURI.isPlatform()) {
|
||||
if (result.isPlatform() && !(result.isPlatformPlugin() || result.isPlatformResource())) {
|
||||
|
|
Loading…
Reference in a new issue