forked from hyperledger/fabric-ca
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-4865] NPE occurs on LoadIdentity
Making a call to public function LoadIdentity results in an NPE if client object has not been initialized. The following error is seen: panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0x44950a7] Need to make sure that the initializing is performed as the first step inside the LoadIdentity function. Also, added some debug lines and reformatted an error Change-Id: I244452fa2871d8a0263df437cf872ba340da45f7 Signed-off-by: Saad Karim <[email protected]>
- Loading branch information
Saad Karim
committed
Jun 19, 2017
1 parent
82fad13
commit 4f4264d
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters