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.

Bug 216559 - NullPointerException at org.netbeans.libs.git.GitBranch.getId
Summary: NullPointerException at org.netbeans.libs.git.GitBranch.getId
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 02:01 UTC by irinipaci
Modified: 2013-04-03 08:50 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185327


Attachments
stacktrace (825 bytes, text/plain)
2012-08-09 02:01 UTC, irinipaci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description irinipaci 2012-08-09 02:01:17 UTC
Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Dynamic Code Evolution 64-Bit Server VM, 0.2-b02-internal, 19.0-b04-internal, Java(TM) SE Runtime Environment, 1.6.0_33-b05
OS: Windows 7

User Comments:
irinipaci: I am trying to push to a remote git repository. I first tried via ssh which didn't work at all even though I triple checked everything and tried via password and ssh private key. Then I tried via sftp which did connect and asked about braches and tags, but when I selected what I wanted to push, it threw this exception.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.libs.git.GitBranch.getId(GitBranch.java:102)
   at org.netbeans.modules.git.ui.push.PushMapping$PushBranchMapping.getRemoteRepositoryBranchHeadId(PushMapping.java:128)
   at org.netbeans.modules.git.ui.push.PushAction$1.getOutgoingRevisions(PushAction.java:194)
   at org.netbeans.modules.git.ui.push.PushAction$1.beforePush(PushAction.java:172)
   at org.netbeans.modules.git.ui.push.PushAction$1.perform(PushAction.java:125)
   at org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:102)
Comment 1 irinipaci 2012-08-09 02:01:19 UTC
Created attachment 122895 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-08-09 07:47:54 UTC
i added some logging: http://hg.netbeans.org/core-main/rev/2266f610144f
download a dev build next week, try the same and upload the exception report again.
Comment 3 irinipaci 2012-08-10 17:49:22 UTC
Will do. Thanks!
Comment 4 Quality Engineering 2012-08-11 02:37:40 UTC
Integrated into 'main-golden', will be available in build *201208110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/2266f610144f
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: Issue #216559 - NullPointerException at org.netbeans.libs.git.GitBranch.getId
adding logging
Comment 5 Ondrej Vrabec 2013-04-03 08:50:53 UTC
fix: http://hg.netbeans.org/core-main/rev/84522024650a