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.

Bug 247950 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Summary: NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
: 254673 255242 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-15 12:46 UTC by qingyue
Modified: 2015-09-14 12:12 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206837


Attachments
stacktrace (2.28 KB, text/plain)
2014-10-15 12:46 UTC, qingyue
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qingyue 2014-10-15 12:46:30 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_65-b32
OS: Linux

User Comments:
GUEST: making a new code template ..New > Abreviation = htm (not html as the orginal shortcut was set by defaul)

Content = 

<html>
    <head>
        <
        <title>${title}</title>
    </head>
    <body>
        ${cursor}
    </body>
</html>

.. when I put the code into the form - then the exception occured ..

qingyue: while editing or in setting to set php template

GUEST: Apareceu o problema aqui.

GUEST: Code Templates -> PHP -> New:

Abbrev: php
Start typing to expanded text: <?

Caused NullPointerException.

GUEST: Do not now, when the error occurred

qingyue: while set php template with:
echo '<pre>';

the whole template code:
echo '<pre>';
print_r(${cursor});
echo '</pre>';

this bug occure long ago.

qingyue: while set php template with the content:
echo '<pre>';
print_r(${cursor});
echo '</pre>';

GUEST: I dont no, just viewer the problem.

GUEST: dsa




Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
   at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:95)
   at org.netbeans.modules.html.custom.conf.Configuration.get(Configuration.java:106)
   at org.netbeans.modules.html.custom.CustomHtmlExtension.completeOpenTags(CustomHtmlExtension.java:157)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery.query(HtmlCompletionQuery.java:419)
   at org.netbeans.modules.html.editor.completion.HtmlCompletionQuery$1.run(HtmlCompletionQuery.java:134)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
Comment 1 qingyue 2014-10-15 12:46:32 UTC
Created attachment 149916 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-07-23 15:52:24 UTC
http://hg.netbeans.org/web-main/rev/554b35d3161c
Comment 3 Quality Engineering 2015-07-24 01:17:52 UTC
Integrated into 'main-silver', will be available in build *201507240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/554b35d3161c
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #247950 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Comment 4 Milutin Kristofic 2015-08-25 13:00:18 UTC
*** Bug 254673 has been marked as a duplicate of this bug. ***
Comment 5 Milutin Kristofic 2015-09-14 12:12:55 UTC
*** Bug 255242 has been marked as a duplicate of this bug. ***