SIGN: fix prevent issues. 71/11871/1
authorJihoon Song <jihoon80.song@samsung.com>
Thu, 7 Nov 2013 04:13:33 +0000 (13:13 +0900)
committerJihoon Song <jihoon80.song@samsung.com>
Thu, 7 Nov 2013 04:13:33 +0000 (13:13 +0900)
In case of null pointer dereferences.

Change-Id: I65d1eda33a802fb005455ced139be9ab8369a4ae
Signed-off-by: Jihoon Song <jihoon80.song@samsung.com>
org.tizen.common.sign/src/hashsign/HashingSigning.java

index 87478ab..11e2759 100644 (file)
@@ -174,7 +174,7 @@ public class HashingSigning {
             NoSuchAlgorithmException, CertificateException, IOException,
             KeyStoreException {
 
-        String alias = null;
+        String alias = "";
         FileInputStream certInStream = null;
         try {
             // Load the KeyStore and get the signing key and certificate.
@@ -462,7 +462,7 @@ public class HashingSigning {
             SAXException, IllegalArgumentException, IllegalStateException,
             OutOfMemoryError, XMLSignatureException {
 
-        String alias = null;
+        String alias = "";
         String signerFileName = null;
         File dirFolder = null;
 
@@ -745,7 +745,7 @@ public class HashingSigning {
             String pkcsPassValue) throws KeyStoreException,
             NoSuchAlgorithmException, CertificateException, IOException {
         FileInputStream certInStream = null;
-        String alias = null;
+        String alias = "";
         int certCnt = 0;
 
         try {