Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IntelliJ][ReportedByUser] Uncaught Exception java.lang.NullPointerException #4045

Closed
Jayonics opened this issue Feb 27, 2020 · 3 comments
Closed

Comments

@Jayonics
Copy link

IntelliJ build version: 2019.3.3 IU-193.6494.35
OS: Windows 10
JDK: JetBrains s.r.o 11.0.5
Plugin version: 3.32.0-2019.3
Additional Info: None
Parent component:

javax.swing.JRootPane[,3,0,777x489,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=16777673,maximumSize=,minimumSize=,preferredSize=java.awt.Dimension[width=777,height=489]]

Error message:

IdeaLoggingEvent[message=null, throwable=java.lang.NullPointerException
	at com.microsoft.azure.hdinsight.spark.common.SparkLocalRunConfigurableModel.<init>(SparkLocalRunConfigurableModel.java:84)
	at com.microsoft.azure.hdinsight.spark.common.SparkBatchJobConfigurableModel.<init>(SparkBatchJobConfigurableModel.java:60)
	at com.microsoft.azure.hdinsight.spark.run.configuration.ArisSparkConfigurableModel.<init>(ArisSparkConfigurableModel.kt:29)
	at com.microsoft.azure.hdinsight.spark.run.configuration.ArisSparkConfigurationFactory.createTemplateConfiguration(ArisSparkConfigurationFactory.kt:39)
@Jayonics
Copy link
Author

@wezhang I think it would be worth pointing out that this seems to be an issue with global data sources for the bundled databases plugin and not with Azure plugin for IntelliJ.

I was able to fix the issue every time by deleting the global data sources XML configuration within the %userprofile%/.IntelliJIDEA2019.3/config/options
options.zip
directory. Then IntelliJ would boot correctly and whenever I would then add my database as a global data source instead of a local data source IntelliJ would crash upon loading any project after reopening intelliJ. Having the data source as a local (project specific) the problem would not occur.

This problem occurs on all of my devices (Laptop, Desktop and Server Desktop) when using the global configuration.

This may not be the correct place to post this issue so if you wouldn't mind redirecting me where to post this issue I would very much appreciate it.

The files are renamed as xml2 because I don't want the crash to reoccur

@wezhang
Copy link
Member

wezhang commented Mar 3, 2020

Thanks @Jayonics ! Looks like the issue is caused by IntelliJ API LocalFileSystem.getInstance().findFileByPath() invoked by Project::getBaseDir() potentially returning null. I've merged a fix in the following release v3.33. Hope it can help you.

@Jayonics
Copy link
Author

Jayonics commented Mar 3, 2020

@wezhang thank you very much.

@wezhang wezhang closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants