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

Breaking 'Search Everywhere' dialog window for projects without git #265

Closed
1 of 3 tasks
elivin opened this issue Dec 14, 2019 · 2 comments
Closed
1 of 3 tasks

Breaking 'Search Everywhere' dialog window for projects without git #265

elivin opened this issue Dec 14, 2019 · 2 comments

Comments

@elivin
Copy link

elivin commented Dec 14, 2019

  • 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?
    I have some projects that used mercurial as VCS.
    When I search by 'Search Everywhere' or 'Find Action' functions, sometimes I have NPE for gitflow4idea plugin. It makes 'Init repo' action.

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

  1. Open IntelliJ
  2. Open project that not used git
  3. Double Shift (of Ctrl+Shift+A)
  4. Type ini or rep
  5. See to IDE error notification
    gitflow-init-action
  • What is the expected behavior?
    Do nothing on update actions if git repository is not initialized.

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

  • Please tell me about your environment:

    • Gitflow4idea version: 0.7.1

    • Gitflow version: null :)

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

      PyCharm 2019.3 (Professional Edition)
      Build #PY-193.5233.109, built on November 28, 2019
      Runtime version: 11.0.4+10-b520.11 amd64
      VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
      Linux 4.19.0-6-amd64
      GC: ParNew, ConcurrentMarkSweep
      Memory: 2014M
      Cores: 4
      Registry: debugger.watches.in.variables=false
      Non-Bundled Plugins: Gitflow, com.alayouni.ansiHighlight, com.intellij.ideolog, de.netnexus.camelcaseplugin, izhangzhihao.rainbow.brackets, name.kropp.intellij.makefile, net.ashald.envfile, org.toml.lang, ru.adelf.idea.dotenv
    
  • Other information (e.g. detailed explanation, stacktrace, related issues, suggestions how to fix, links for me to have context words of praises, pictures of puppies (again with the puppy??) )

Stacktrace:

java.lang.NullPointerException
	at gitflow.actions.ReInitRepoAction.update(ReInitRepoAction.java:23)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:177)
	at com.intellij.ide.util.gotoByName.GotoActionModel.updateActionBeforeShow(GotoActionModel.java:303)
	at com.intellij.ide.util.gotoByName.GotoActionModel$ActionWrapper.lambda$getPresentation$0(GotoActionModel.java:652)
	at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$updateOnEdt$4(GotoActionModel.java:456)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:309)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:906)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:779)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:422)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:421)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

PR #264 is fix for this, not #249 :)

@elivin elivin changed the title Braking 'Search Everywhere' dialog window for projects without git Breaking 'Search Everywhere' dialog window for projects without git Dec 14, 2019
@OpherV
Copy link
Owner

OpherV commented Dec 14, 2019

Good catch! I'll add this to my test cases

@OpherV
Copy link
Owner

OpherV commented May 3, 2020

Fixed in 0.7.2

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

No branches or pull requests

2 participants