[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.dltk] Re: (org.eclipse.dltk.ui.text.completion.)ProposalInfo.getHTMLContentReader:150 - NullPointerException
|
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@xxxxxxxxx> wrote in message
news:g2l7ot$nbo$1@xxxxxxxxxxxxxxxxxxxx
> 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.getHTMLContentReader(ProposalInfo.java:150)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.extractScriptdoc(ProposalInfo.java:140)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.computeInfo(ProposalInfo.java:90)
>> at
>> org.eclipse.dltk.ui.text.completion.ProposalInfo.getInfo(ProposalInfo.java:67)
>> at
>> org.eclipse.dltk.ui.text.completion.AbstractScriptCompletionProposal.getAdditionalProposalInfo(AbstractScriptCompletionProposal.java:440)
>> at
>> org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:102)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>>
>>