Getting NPE when saving class.
Issue #1350
duplicate
Not sure how to reproduce this but getting this in the logs:
com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer.deployWithMetadataApi(SourceFile:186)
2019-07-18 09:20:28,422 [ 779014] INFO - rationStore.ComponentStoreImpl - Saving Module: 'Cortex-GitFlow'FacetManager took 89 ms
2019-07-18 09:20:28,708 [ 779300] INFO - rationStore.ComponentStoreImpl - Saving Project 'D:\WebstormProjects\Cortex-GitFlow' Cortex-GitFlowIlluminatedCloudWorkspaceSettings took 270 ms
2019-07-18 09:20:29,465 [ 780057] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 1224 ms
2019-07-18 09:20:33,307 [ 783899] INFO - ij.builder.ForceComBuilderUtil - Enumerated metadata for connection DevJJ in 5 s 11 ms.
2019-07-18 09:20:33,309 [ 783901] WARN - .IlluminatedCloudExceptionUtil -
java.lang.NullPointerException
at com.illuminatedcloud.intellij.builder.ModuleContentsFilter.accept(SourceFile:95)
at com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer.createDeploymentArchive(SourceFile:388)
at com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer.deployWithMetadataApi(SourceFile:217)
at com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer.access$000(SourceFile:92)
at com.illuminatedcloud.intellij.builder.ForceComMetadataApiDeployer$1.run(SourceFile:157)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-07-18 09:20:43,451 [ 794043] INFO - ide.actions.ShowFilePathAction -
Exit code 1
Comments (4)
-
repo owner -
reporter Hi Scott,
Unfortunately it only happened a couple of times then seemed to resolve itself. If it happens again I'll post the logs.
thanks
Justin
-
reporter - changed status to duplicate
Duplicate of
#1358. -
repo owner - changed component to Metadata Deployment/Retrieval/Removal
- Log in to comment
Hmmm...I can see which variable is null, but I can't tell why that might be the case. If this is happening regularly enough for you, do you mind enabling debug logging for metadata deployment for a while and, when it happens, sending me the resulting relevant log snippet? Hopefully that will show what's leading to the null value. I don't expect this value to be null, so I'd prefer to understand this before I just check for null and skip processing when present. Thanks!