Skip to content

[IntelliJ] Uncaught Exception java.lang.NullPointerException: Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getPath()" because the return value of "com.intellij.openapi.vfs.VirtualFile.getParent()" is null #12159

Description

@ben3000

IntelliJ build version: 2026.1.3 IU-261.25134.95
OS: Mac OS X
JDK: JetBrains s.r.o. 25.0.3
Plugin version: 3.97.6-2026.1
Additional Info: None
Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,0,0,2279x1860,layout=com.intellij.openapi.wm.impl.IdeRootPane$CustomHeaderRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:

IdeaLoggingEvent[message=null, throwable=java.lang.NullPointerException: Cannot invoke "com.intellij.openapi.vfs.VirtualFile.getPath()" because the return value of "com.intellij.openapi.vfs.VirtualFile.getParent()" is null
	at com.microsoft.azure.toolkit.intellij.container.model.DockerImage.<init>(DockerImage.java:57)
	at com.microsoft.azure.toolkit.intellij.containerregistry.runner.ContainerRegistryDockerfileActionsProvider.getActions(ContainerRegistryDockerfileActionsProvider.java:17)
	at com.microsoft.azure.toolkit.intellij.containerregistry.runner.DockerRunLineMarkerProvider.lambda$getDockerfileActions$2(DockerRunLineMarkerProvider.java:105)
	at com.microsoft.azure.toolkit.intellij.containerregistry.runner.DockerRunLineMarkerProvider.getDockerfileActions(DockerRunLineMarkerProvider.java:108)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions