Skip to content

Exception thrown when creating new Flutter project #38

@BMSihlas

Description

@BMSihlas

What happened

Tried creating new flutter project from scratch using the New Project dialog and the plugin Flutter Storm.

I left the already filled values and moved on to create project. Though the project was successfuly created in the specfified location, the editor threw the exception found below.

Version information

PhpStorm 2023.1.3 • Flutter Storm plugin com.github.beansoftapp.flutter.storm 2023.1.0 • Dart plugin 231.9161.14

Error getting Flutter sdk information.

Exception

null

java.lang.NullPointerException: Cannot invoke "io.flutter.sdk.FlutterSdk.queryFlutterChannel(boolean)" because "sdk" is null
	at io.flutter.module.settings.PlatformsForm.initChannel(PlatformsForm.kt:31)
	at io.flutter.module.settings.FlutterCreateAdditionalSettingsFields.lambda$addSettingsFields$3(FlutterCreateAdditionalSettingsFields.java:153)
	at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:252)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:833)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions