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

NullPointerException when writing to index (out is null) #151

Open MalkoAl opened 1 year ago

MalkoAl commented 1 year ago

<-- If you remember any details about how the error can be reproduced please add them -->

Plugin Version: 0.6.10 IntelliJ Version: PyCharm 2023.1 IntelliJ Build: PC-231.8109.197

java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.write(byte[], int, int)" because "this.out" is null ``` java.lang.NullPointerException: Cannot invoke "java.io.OutputStream.write(byte[], int, int)" because "this.out" is null at java.base/java.io.DataOutputStream.writeInt(DataOutputStream.java:208) at at.wtioit.intellij.plugins.odoo.AbstractDataExternalizer.saveString(AbstractDataExternalizer.java:36) at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordFileIndex$1.save(OdooRecordFileIndex.java:57) at at.wtioit.intellij.plugins.odoo.records.index.OdooRecordFileIndex$1.save(OdooRecordFileIndex.java:54) at at.wtioit.intellij.plugins.odoo.index.OdooIndexExtension.save(OdooIndexExtension.java:17) at at.wtioit.intellij.plugins.odoo.index.OdooIndex$1.save(OdooIndex.java:113) at at.wtioit.intellij.plugins.odoo.index.OdooIndex$1.save(OdooIndex.java:107) at com.intellij.util.indexing.impl.ValueContainerImpl.saveTo(ValueContainerImpl.java:451) ... at com.intellij.util.indexing.FileBasedIndexImpl.getContainingFiles(FileBasedIndexImpl.java:1169) at at.wtioit.intellij.plugins.odoo.models.impl.OdooModelServiceImpl.lambda$getModels$0(OdooModelServiceImpl.java:34) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ... at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at at.wtioit.intellij.plugins.odoo.modules.impl.AbstractOdooModuleImpl.getModels(AbstractOdooModuleImpl.java:33) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.lambda$getOdooModelRecord$4(OdooRecordServiceImpl.java:108) at at.wtioit.intellij.plugins.odoo.WithinProject.call(WithinProject.java:15) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.getOdooModelRecord(OdooRecordServiceImpl.java:107) at at.wtioit.intellij.plugins.odoo.records.impl.OdooRecordServiceImpl.hasRecord(OdooRecordServiceImpl.java:160) 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$VoidForkJoinTask$1.exec(JobLauncherImpl.java:181) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ```