This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Most probably I've selected wrong component, but I hope issue will be redirected to right people. In this line ... http://hg.netbeans.org/main/file/ef35591e2d0f/web.common/src/org/netbeans/modules/web/common/api/WebUtils.java#l137 FileObject resolvedFileObject = parent.getFileObject(URLDecoder.decode(importedFileName, "UTF-8")); //NOI18N ... there is a file path being constructed and resolved from relative URL (stored in variable `importedFileName`) in parent HTML file. In general URL may contain hash part, which is not mapped into file system - i.e. presence of '#' will, typically, always lead to null result. I suspect some additional verification is needed there String fileUrl = URLDecoder.decode(importedFileName, "UTF-8"); //NOI18N int posHash = fileUrl.indexOf('#'); if( posHash != -1 ) fileUrl = fileUrl.substring(0, posHash); FileObject resolvedFileObject = parent.getFileObject(fileUrl);
Thank you, it was inconsistent since we remove query part but not fragment part. Fixed here : http://hg.netbeans.org/jet-main/rev/7be60ce369ec
Integrated into 'main-silver', will be available in build *201610040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/7be60ce369ec User: Milutin Kristofic <mkristofic@netbeans.org> Log: #268258 - WebUtils.resolveToReference() - isn't check for '#' needed there?