Skip to content

NullPointer Exception and other error in IntelliJ IDEA 15.0.3

Hi,

I get following exception on trying to autocomplete e.g. "config." outside any braces. Same exception on autocomplete-try inside braces - reinstalling plugin didnt help.

Stack trace:

"null
java.lang.NullPointerException
	at de.sgalinski.typoscript.editor.utility.TypoScriptFileTreeUtility.addTLObjectsAsFileTree(TypoScriptFileTreeUtility.java:100)
	at de.sgalinski.typoscript.editor.utility.TypoScriptFileTreeUtility.(TypoScriptFileTreeUtility.java:86)
	at de.sgalinski.typoscript.editor.completion.TypoScriptCommonKeyCompletion.(TypoScriptCommonKeyCompletion.java:61)
	at de.sgalinski.typoscript.editor.completion.TypoScriptKeyCompletionProvider.addCompletions(TypoScriptKeyCompletionProvider.java:55)
	at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
	at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
	at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
	at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:135)
	at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:128)
	at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$2.addCompletions(LiveTemplateCompletionContributor.java:90)
	at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
	at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
	at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:81)
	at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:110)
	at com.intellij.codeInsight.completion.CompletionProgressIndicator.a(CompletionProgressIndicator.java:843)
	at com.intellij.codeInsight.completion.CompletionProgressIndicator.access$1000(CompletionProgressIndicator.java:93)
	at com.intellij.codeInsight.completion.CompletionProgressIndicator$1CalculateItems.run(CompletionProgressIndicator.java:825)
	at com.intellij.codeInsight.completion.AsyncCompletion$1$1$1.run(CompletionThreading.java:94)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:951)
	at com.intellij.codeInsight.completion.AsyncCompletion$1$1.run(CompletionThreading.java:89)
	at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
	at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
	at com.intellij.codeInsight.completion.AsyncCompletion$1.run(CompletionThreading.java:85)
	at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:366)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:55)
"

and when hovering over the dot with cursor I get validation error:

TypoScriptTokenType.COPY_SEPARATOR, TypoScriptTokenType.DELETE_SEPARATOR, TypoScriptTokenType.FUNCTION_SEPARATOR, TypoScriptTokenType.KEYWORD, TypoScriptTokenType.KEYWORD_SEPARATOR, TypoScriptTokenType.KEYWORD_VALUE, TypoScriptTokenType.LEFT_BRACE, TypoScriptTokenType.LEFT_PARENTHESIS or TypoScriptTokenType.SEPARATOR expected, got '
'
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information