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 - NullPointerException at com.jcraft.jsch.KeyPairPKCS8.getPublicKeyBlob
Summary: NullPointerException at com.jcraft.jsch.KeyPairPKCS8.getPublicKeyBlob
Status: RESOLVED INVALID
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 11:50 UTC by kolorafa
Modified: 2017-02-03 13:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227710


Attachments
stacktrace (3.32 KB, text/plain)
2017-01-17 11:50 UTC, kolorafa
Details

Note You need to log in before you can comment on or make changes to this bug.
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