microsoft / microsoft/azure-tools-for-java
[IntelliJ][ReportedByUser] Uncaught Exception java.lang.NullPointerException: Cannot invoke "com.microsoft.azure.toolkit.intellij.common.AzureComboBox$AzureComboBoxEditor.rerender()" because "this.myEditor" is null
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 262
- Forks
- 185
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 1
Description
Trying to sign to azure account using oAuth
IntelliJ build version: 2024.1 IC-241.14494.240
OS: Windows 10
JDK: JetBrains s.r.o. 17.0.10
Plugin version: 3.90.0-2024.1
Additional Info: Trying to sign in to azure account
Parent component:
com.intellij.openapi.wm.impl.IdeRootPane[,7,7,1281x681,layout=com.intellij.openapi.wm.impl.IdeRootPane$MyRootLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
Error message:
IdeaLoggingEvent[message=null, throwable=java.lang.NullPointerException: Cannot invoke "com.microsoft.azure.toolkit.intellij.common.AzureComboBox$AzureComboBoxEditor.rerender()" because "this.myEditor" is null
at com.microsoft.azure.toolkit.intellij.common.AzureComboBox.lambda$setLoading$9(AzureComboBox.java:270)
at com.microsoft.azure.toolkit.intellij.legacy.function.action.CreateFunctionAction.invokeDialog(CreateFunctionAction.java:113)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at AzureComboBox.java:270, where setLoading triggers the null AzureComboBoxEditor, and trace the call from CreateFunctionAction.java:113 during Azure sign-in. Reproduce the OAuth sign-in flow on the reported IntelliJ setup and verify that it no longer raises this NullPointerException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cloud, desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100