This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This bug was originally marked as duplicate of bug 198644, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 8.0 (Build 201403101706) VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18 OS: Windows 8 User Comments: GUEST: Cloning repo via ssh. On the repository are two branches and I selected both. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.git.ui.fetch.PullBranchesStep.markMergingBranch(PullBranchesStep.java:242) at org.netbeans.modules.git.ui.fetch.PullBranchesStep.stateChanged(PullBranchesStep.java:207) at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:133) at org.openide.util.ChangeSupport.fireChange(ChangeSupport.java:119) at org.netbeans.modules.git.ui.selectors.ItemSelector.switchSelection(ItemSelector.java:244) at org.netbeans.modules.git.ui.selectors.ItemSelector.access$100(ItemSelector.java:75)
Created attachment 146444 [details] stacktrace
fixed: core-main #72de8be3ffa2
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/72de8be3ffa2 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #243417 - NullPointerException at org.netbeans.modules.git.ui.fetch.PullBranchesStep.markMergingBranch When doing a pull right after git init (the local repository does not have any commit yet) current branch is null. Adding a check for "null" resolves it quite easily.
releases #6c4f2391c029
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/6c4f2391c029 User: Ondrej Vrabec <ovrabec@netbeans.org> Log: Issue #243417 - NullPointerException at org.netbeans.modules.git.ui.fetch.PullBranchesStep.markMergingBranch When doing a pull right after git init (the local repository does not have any commit yet) current branch is null. Adding a check for "null" resolves it quite easily. (grafted from 72de8be3ffa2da89474b0bfd5278af9895bd8706)