Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while loading DOCTYPE subset : java.lang.NullPointerException #739

Closed
angelozerr opened this issue May 28, 2020 · 0 comments · Fixed by #740
Closed

Error while loading DOCTYPE subset : java.lang.NullPointerException #739

angelozerr opened this issue May 28, 2020 · 0 comments · Fixed by #740
Labels
bug Something isn't working completion This issue or enhancement is related to completion support
Milestone

Comments

@angelozerr
Copy link
Contributor

Given this XML file:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE root-element SYSTEM "foo.dtd">
<root-element>
  &|
</root-element>

Open the completion and you see the error log

[Error - 17:51:00] May 28, 2020 05:51:00 org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDContentModelProvider createInternalCMDocument()
Message: Error while loading DOCTYPE subset
java.lang.NullPointerException
	at org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDDocument.loadInternalDTD(CMDTDDocument.java:357)
	at org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDContentModelProvider.createInternalCMDocument(CMDTDContentModelProvider.java:94)
	at org.eclipse.lemminx.extensions.contentmodel.model.ContentModelManager.findCMDocument(ContentModelManager.java:109)
	at org.eclipse.lemminx.extensions.contentmodel.model.ContentModelManager.findCMDocument(ContentModelManager.java:94)
	at org.eclipse.lemminx.extensions.contentmodel.model.ContentModelManager.findCMDocument(ContentModelManager.java:77)
	at org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelCompletionParticipant.onXMLContent(ContentModelCompletionParticipant.java:363)
	at org.eclipse.lemminx.services.XMLCompletions.collectInsideContent(XMLCompletions.java:739)
	at org.eclipse.lemminx.services.XMLCompletions.doComplete(XMLCompletions.java:224)
	at org.eclipse.lemminx.services.XMLLanguageService.doComplete(XMLLanguageService.java:139)
	at org.eclipse.lemminx.XMLTextDocumentService.lambda$completion$1(XMLTextDocumentService.java:189)
	at java.base/java.util.concurrent.CompletableFuture.biApply(CompletableFuture.java:1236)
	at java.base/java.util.concurrent.CompletableFuture$BiApply.tryFire(CompletableFuture.java:1205)
	at java.base/java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:479)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

@angelozerr angelozerr added the bug Something isn't working label May 28, 2020
@angelozerr angelozerr added this to the 0.12.0 milestone May 28, 2020
angelozerr pushed a commit to angelozerr/lemminx that referenced this issue May 28, 2020
fbricon pushed a commit that referenced this issue May 28, 2020
Fixes #739

Signed-off-by: azerr <azerr@redhat.com>
@fbricon fbricon added the completion This issue or enhancement is related to completion support label May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working completion This issue or enhancement is related to completion support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants