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 269581

Summary: NullPointerException at com.jcraft.jsch.KeyPairPKCS8.getPublicKeyBlob
Product: versioncontrol Reporter: kolorafa
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: RESOLVED INVALID    
Severity: normal CC: git
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 227710
Attachments: stacktrace

Description kolorafa 2017-01-17 11:50:55 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: OpenJDK 64-Bit Server VM, 25.112-b15, OpenJDK Runtime Environment, 1.8.0_112-b15
OS: Linux

User Comments:
kolorafa: Hard to say ... my key is encrypted and from that time i can't push or pull.

I rather not store my key unencrypted on hard drive and i use ssh-agent on terminal.

Should it ask for password when trying to decrypt the key?

my key starts with:
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkq....




Stacktrace: 
java.lang.NullPointerException
   at com.jcraft.jsch.KeyPairPKCS8.getPublicKeyBlob(KeyPairPKCS8.java:199)
   at com.jcraft.jsch.IdentityFile.getPublicKeyBlob(IdentityFile.java:71)
   at com.jcraft.jsch.LocalIdentityRepository.add(LocalIdentityRepository.java:63)
   at com.jcraft.jsch.JSch.addIdentity(JSch.java:471)
   at com.jcraft.jsch.JSch.addIdentity(JSch.java:408)
   at com.jcraft.jsch.JSch.addIdentity(JSch.java:367)
Comment 1 kolorafa 2017-01-17 11:50:57 UTC
Created attachment 163411 [details]
stacktrace
Comment 2 kolorafa 2017-02-03 13:00:50 UTC
key was wrongly encrypted