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 in OdooModuleService getModule fileData is null #162

Closed fahimanizam closed 1 year ago

fahimanizam commented 1 year ago

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

Plugin Version: 0.6.11 IntelliJ Version: PyCharm 2022.3.3 IntelliJ Build: PY-223.8836.43

java.lang.NullPointerException: Cannot read field "indexerId" because "fileData" is null ``` java.lang.NullPointerException: Cannot read field "indexerId" because "fileData" is null at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.setIndexedStateForFileOnFileIndexMetaData(VfsAwareMapReduceIndex.java:220) ... at com.intellij.util.indexing.FileBasedIndexEx.getValues(FileBasedIndexEx.java:139) at at.wtioit.intellij.plugins.odoo.index.OdooIndex.getValues(OdooIndex.java:49) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.lambda$getModule$1(OdooModuleServiceImpl.java:63) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:885) at at.wtioit.intellij.plugins.odoo.modules.impl.OdooModuleServiceImpl.getModule(OdooModuleServiceImpl.java:61) at at.wtioit.intellij.plugins.odoo.pycharm.PyCharmOdooAddonsImportResolver.resolveImportReference(PyCharmOdooAddonsImportResolver.java:48) at com.jetbrains.python.psi.resolve.PyResolveImportUtil$foreignResults$1.invoke(PyResolveImportUtil.kt:199) ... at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ```