it-crowd / pom-sorter

Plugin for IntelliJ Idea to sort pom.xml
4 stars 9 forks source link

not open settings page #6

Closed BorzdeG closed 11 years ago

BorzdeG commented 11 years ago

When you open the Preferences page, download the icon appears as an error in the logs. screenshot: https://lh6.googleusercontent.com/-pyu35zPd95A/ULdBicNJIsI/AAAAAAAAGu0/ZY4FXt3hZX4/s800/screen000.png

Intellij IDEA: IU-123.23 OS: Ubuntu 12.04 64bit plugin version: 1.0.7-SNAPSHOT

BorzdeG commented 11 years ago

null java.lang.NullPointerException at javax.swing.ImageIcon.(ImageIcon.java:205) at pl.itcrowd.pom_sorter.ui.SettingsForm.$$$setupUI$$$(SettingsForm.java:376) at pl.itcrowd.pom_sorter.ui.SettingsForm.(SettingsForm.java:321) at pl.itcrowd.pom_sorter.PomSorterConfigurable.createComponent(PomSorterConfigurable.java:67) at com.intellij.openapi.options.newEditor.OptionsEditor$Simple.(OptionsEditor.java:1260) at com.intellij.openapi.options.newEditor.OptionsEditor.b(OptionsEditor.java:445) at com.intellij.openapi.options.newEditor.OptionsEditor.access$2500(OptionsEditor.java:68) at com.intellij.openapi.options.newEditor.OptionsEditor$8$1$1.run(OptionsEditor.java:414) at com.intellij.openapi.application.impl.ApplicationImpl.runEdtSafeAction(ApplicationImpl.java:1103) at com.intellij.openapi.options.newEditor.OptionsEditor$8$1.run(OptionsEditor.java:408) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:935) at com.intellij.openapi.options.newEditor.OptionsEditor$8.run(OptionsEditor.java:406) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:465) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)

BorzdeG commented 11 years ago

When running the project everything is fine - no error. Now the error is, if you open the settings on the first screen - even when none of the projects is not open

null java.lang.NullPointerException at pl.itcrowd.pom_sorter.ui.SettingsForm.reset(SettingsForm.java:291) at pl.itcrowd.pom_sorter.ui.SettingsForm.(SettingsForm.java:261) at pl.itcrowd.pom_sorter.PomSorterConfigurable.createComponent(PomSorterConfigurable.java:69) at com.intellij.openapi.options.newEditor.OptionsEditor$Simple.(OptionsEditor.java:1260) at com.intellij.openapi.options.newEditor.OptionsEditor.b(OptionsEditor.java:445) at com.intellij.openapi.options.newEditor.OptionsEditor.access$2500(OptionsEditor.java:68) at com.intellij.openapi.options.newEditor.OptionsEditor$8$1$1.run(OptionsEditor.java:414) at com.intellij.openapi.application.impl.ApplicationImpl.runEdtSafeAction(ApplicationImpl.java:1103) at com.intellij.openapi.options.newEditor.OptionsEditor$8$1.run(OptionsEditor.java:408) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:935) at com.intellij.openapi.options.newEditor.OptionsEditor$8.run(OptionsEditor.java:406) at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:465) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:153)

blabno commented 11 years ago

This happens only when you have no project open and access settings.

blabno commented 11 years ago

For now I've made the PomSorter tab to be visible in Project Settings only if there is project opened. I've also asked JetBrains how to do it better http://devnet.jetbrains.net/message/5473126#5473126