question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullPointerException on close active task

See original GitHub issue
  • I’m submitting a …

    • bug report
    • feature request
    • puppy => You’re not submitting a puppy. I already have one and he’s adorable
  • What is the current behavior? NullPointerException on close task with or without creation of feature.

  • Is this a bug? Sorry about that. If so give me explicit details how to reproduce:

  1. Open IntelliJ
  2. Start task with or without “Create feature” checked in Gitflow section
  3. Close active task (with shortcut or Tool -> Tasks & Context -> Close active Task)
  4. The panel not open and Exception is thrown (Stack trace is below)
  • What is the expected behavior? Close active task for open new.

  • What is the motivation / use case for changing the behavior?

  • Please tell me about your environment:

    • Gitflow4idea version: 0.6.5.1

    • Gitflow version: 0.4.1

    • IntelliJ Help -> about > click copy icon and paste here. Should look like this:

      PhpStorm 2018.1
      Build #PS-181.4203.565, built on March 28, 2018
      Licensed to Consulting Convergence & System SA / David Wittwer
      Subscription is active until May 7, 2018
      JRE: 1.8.0_152-release-1136-b20 x86_64
      JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
      macOS 10.13.3
    
java.lang.NullPointerException
	at gitflow.ui.GitflowCloseTaskPanel.<init>(GitflowCloseTaskPanel.java:64)
	at gitflow.ui.GitflowTaskDialogPanelProvider.getCloseTaskPanel(GitflowTaskDialogPanelProvider.java:41)
	at com.intellij.tasks.ui.TaskDialogPanelProvider.lambda$getCloseTaskPanels$1(TaskDialogPanelProvider.java:44)
	at com.intellij.util.containers.ContainerUtil.mapNotNull(ContainerUtil.java:1925)
	at com.intellij.util.containers.ContainerUtil.mapNotNull(ContainerUtil.java:1874)
	at com.intellij.tasks.ui.TaskDialogPanelProvider.getCloseTaskPanels(TaskDialogPanelProvider.java:43)
	at com.intellij.tasks.actions.CloseTaskDialog.<init>(CloseTaskDialog.java:92)
	at com.intellij.tasks.actions.CloseTaskAction.actionPerformed(CloseTaskAction.java:39)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:576)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:625)
	at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:624)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:479)
	at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:213)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:738)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:434)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:9

github_iconTop GitHub Comments

1reaction
pgruppcommented, Jul 1, 2018

I’ve been investigating a bit. This seems to be happening because of an option not being set, but where to set it, I’m not sure: In the above mentioned line this is actually null: GitflowConfigurable.getOptionTextString(project, "HOTFIX_customHotfixCommitMessage") but the .replace("%name%", branchName) is called on it anyway. So I was able to fix this probably. But ran into another issue with the GitflowState being corrupted/out of sync thus not showing the correct options, when closing the task anyway. I’ll keep you posted and come up with a pull request, if I succeed. Cheers 😃

0reactions
neoantoxcommented, Jul 6, 2018

Try to enable “Use custom hotfix commit message” checkbox in settings. This fixed the problem for me. image

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - What is a NullPointerException, and how do I fix it?
The NullPointerException (NPE) typically occurs when you declare a variable but did not create an object and assign it to the variable before...
Read more >
NullPointerException: Task is being killed and will not recover ...
Hi. Noticed a NPE which cause the task to stop and never recover. Cheers, -Kristoffer. java.lang.NullPointerException
Read more >
throwing NullPointerException: Attempt to de-reference a null ...
Boolean logic performs short-circuit evaluation, so as soon as it can exit, it will do so: String nullVariable; if (nullVariable != null ...
Read more >
NullPointerException on Assignment-Handler - jBPM - JBoss.org
Hi! On the following test process when the execution reaches task3 JBPM 4.3 throws a null pointer exception.
Read more >
"Could not get tasks from ActiveVOS: java.lang ... - ERROR
This issue occurs because some of the presentation parameters are not set for ActiveVOS custom workflow causing nullpointerexception. Refer to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found