Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » (org.eclipse.dltk.ui.text.completion.)ProposalInfo.getHTMLContentReader:150 - NullPointerException
(org.eclipse.dltk.ui.text.completion.)ProposalInfo.getHTMLContentReader:150 - NullPointerException [message #25257] Mon, 09 June 2008 23:51 Go to next message
Charles Doucette is currently offline Charles Doucette
Messages: 125
Registered: July 2009
Senior Member
Below I have pasted the exception I get repeatedely during attempted
completion since my model elements do not include any documentation.

FYI - Here is line 150 from that file:
nature = DLTKLanguageManager.getLanguageToolkit(member).getNatureId() ;

I assume getLanguageToolkit(member) is returning null.

Chuck

!ENTRY org.eclipse.jface.text 2 0 2008-06-09 19:00:09.054
!MESSAGE
!STACK 0
java.lang.NullPointerException
at
org.eclipse.dltk.ui.text.completion.ProposalInfo.getHTMLCont entReader(ProposalInfo.java:150)
at
org.eclipse.dltk.ui.text.completion.ProposalInfo.extractScri ptdoc(ProposalInfo.java:140)
at
org.eclipse.dltk.ui.text.completion.ProposalInfo.computeInfo (ProposalInfo.java:90)
at
org.eclipse.dltk.ui.text.completion.ProposalInfo.getInfo(Pro posalInfo.java:67)
at
org.eclipse.dltk.ui.text.completion.AbstractScriptCompletion Proposal.getAdditionalProposalInfo(AbstractScriptCompletionP roposal.java:440)
at
org.eclipse.jface.text.contentassist.AdditionalInfoControlle r$3.run(AdditionalInfoController.java:102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: (org.eclipse.dltk.ui.text.completion.)ProposalInfo.getHTMLContentReader:150 - NullPointerExcepti [message #25459 is a reply to message #25257] Tue, 10 June 2008 06:42 Go to previous messageGo to next message
Andrei Sobolev is currently offline Andrei Sobolev
Messages: 72
Registered: July 2009
Member
Hi Chuck,

I've added check for this case to ProposalInfo class.
I suppose this could only happen if you return not correct model element from your completion engine.

Best regards, Andrei.

> Below I have pasted the exception I get repeatedely during attempted
> completion since my model elements do not include any documentation.
>
> FYI - Here is line 150 from that file:
> nature = DLTKLanguageManager.getLanguageToolkit(member).getNatureId() ;
>
> I assume getLanguageToolkit(member) is returning null.
>
> Chuck
>
> !ENTRY org.eclipse.jface.text 2 0 2008-06-09 19:00:09.054
> !MESSAGE
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.dltk.ui.text.completion.ProposalInfo.getHTMLCont entReader(ProposalInfo.java:150)
> at
> org.eclipse.dltk.ui.text.completion.ProposalInfo.extractScri ptdoc(ProposalInfo.java:140)
> at
> org.eclipse.dltk.ui.text.completion.ProposalInfo.computeInfo (ProposalInfo.java:90)
> at
> org.eclipse.dltk.ui.text.completion.ProposalInfo.getInfo(Pro posalInfo.java:67)
> at
> org.eclipse.dltk.ui.text.completion.AbstractScriptCompletion Proposal.getAdditionalProposalInfo(AbstractScriptCompletionP roposal.java:440)
> at
> org.eclipse.jface.text.contentassist.AdditionalInfoControlle r$3.run(AdditionalInfoController.java:102)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
>
Re: (org.eclipse.dltk.ui.text.completion.)ProposalInfo.getHTMLContentReader:150 - NullPointerExcepti [message #25500 is a reply to message #25459] Tue, 10 June 2008 13:30 Go to previous message
Charles Doucette is currently offline Charles Doucette
Messages: 125
Registered: July 2009
Senior Member
I could certainly believe that there may also be something wrong with my
model elements.
If you care to venture a guess as to what that might be - I'll gladly look
for it.

Chuck

"Andrei Sobolev" <haiodo@xored.com> wrote in message
news:g2l7ot$nbo$1@build.eclipse.org...
> Hi Chuck,
>
> I've added check for this case to ProposalInfo class.
> I suppose this could only happen if you return not correct model element
> from your completion engine.
>
> Best regards, Andrei.
>
>> Below I have pasted the exception I get repeatedely during attempted
>> completion since my model elements do not include any documentation.
>>
>> FYI - Here is line 150 from that file:
>> nature = DLTKLanguageManager.getLanguageToolkit(member).getNatureId() ;
>>
>> I assume getLanguageToolkit(member) is returning null.
>>
>> Chuck
>>
>> !ENTRY org.eclipse.jface.text 2 0 2008-06-09 19:00:09.054
>> !MESSAGE
>> !STACK 0
>> java.lang.NullPointerException
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.getHTMLCont entReader(ProposalInfo.java:150)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.extractScri ptdoc(ProposalInfo.java:140)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.computeInfo (ProposalInfo.java:90)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.getInfo(Pro posalInfo.java:67)
>> at
>> org.eclipse.dltk.ui.text.completion.AbstractScriptCompletion Proposal.getAdditionalProposalInfo(AbstractScriptCompletionP roposal.java:440)
>> at
>> org.eclipse.jface.text.contentassist.AdditionalInfoControlle r$3.run(AdditionalInfoController.java:102)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>
Previous Topic:Remote Launch Configuration Tab
Next Topic:ASTVisitor.visitGeneral
Goto Forum:
  


Current Time: Thu Sep 18 06:05:02 GMT 2014

Powered by FUDForum. Page generated in 0.04389 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software