SIGN: fix a prevent issue. 15/13815/1
authorJihoon Song <jihoon80.song@samsung.com>
Tue, 17 Dec 2013 01:32:05 +0000 (10:32 +0900)
committerJihoon Song <jihoon80.song@samsung.com>
Tue, 17 Dec 2013 01:32:05 +0000 (10:32 +0900)
The problem is "RV:Bad use of return value".
'throw' statement was missing.

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

index 26576b7..81104cd 100644 (file)
@@ -349,7 +349,7 @@ public class TizenIncrementalSigner {
             // process incrementally elements
             List<Reference> refs = interceptReferenceList();
             if ( refs == null ) {
-                new XMLSecurityException( "Failed to intercept the reference list. Cannot perform incrementally." );
+                throw new XMLSecurityException( "Failed to intercept the reference list. Cannot perform incrementally." );
             }
             restoreReferenceList( refs, bAuthor );
         } else {