wt-io-it / odoo-pycharm-plugin

Plugin to Support Odoo in Pycharm
GNU Affero General Public License v3.0
19 stars 10 forks source link

com.intellij.psi.PsiInvalidElementAccessException XML parent is null #121

Open martinsalcedoapps opened 1 year ago

martinsalcedoapps commented 1 year ago

Plugin Version: 0.6.9 IntelliJ Version: PyCharm 2022.3 IntelliJ Build: PC-223.7571.203

com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null ``` com.intellij.psi.PsiInvalidElementAccessException: Element: class com.intellij.psi.impl.source.xml.XmlTagImpl #XML because: parent is null invalidated at: see attachment at com.intellij.psi.impl.source.tree.CompositePsiElement.getContainingFile(CompositePsiElement.java:91) at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordImpl.findVirtualFile(OdooRecordImpl.java:118) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$6(OdooRecordServiceImpl.java:154) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ... at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:632) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$hasRecord$9(OdooRecordServiceImpl.java:156) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.hasRecord(OdooRecordServiceImpl.java:153) at at.wtioit.intellij.plugins.odoo.records.inspection.MissingRecordDefinitionXmlInspection$1.visitXmlToken(MissingRecordDefinitionXmlInspection.java:44) at com.intellij.psi.impl.source.xml.XmlTokenImpl.accept(XmlTokenImpl.java:29) ... at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:272) at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1428) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ```