[Title] cli: fixed NPE for profile converting
authorJihoon Song <jihoon80.song@samsung.com>
Mon, 1 Jul 2013 07:13:42 +0000 (16:13 +0900)
committerJihoon Song <jihoon80.song@samsung.com>
Mon, 1 Jul 2013 07:13:42 +0000 (16:13 +0900)
[Desc.]
[Issue]

Change-Id: I8da7146c18478006490962ad22c9664877f553fe

org.tizen.cli/build.properties
org.tizen.cli/src/org/tizen/cli/exec/sign/Main.java

index b7d31b9..1d3c4b0 100644 (file)
@@ -6,8 +6,6 @@ bin.includes = META-INF/,\
                about_files/,\
                about.html,\
                OSGI-INF/
-source.lib/commons-cli-1.2.jar = 
 jars.compile.order = .,\
                      lib/commons-cli-1.2.jar,\
                      lib/ant.jar
-source.lib/ant.jar = 
index 9c041cb..b983889 100644 (file)
@@ -274,8 +274,7 @@ extends AbstractLauncher
         // notify items of selected profile
         for ( int i = 0; i <= SigningProfile.MAX_DISTRIBUTOR; i++ ) {
             SigningProfileItem item = profile.getProfileItem( i );
-            String keyLocation = item.getKeyLocation();
-            if ( ! StringUtil.isEmpty( keyLocation ) ) {
+            if ( ( item != null ) && ( ! StringUtil.isEmpty( item.getKeyLocation() ) ) ) {
                 String msg = ( i == SigningProfile.AUTHOR_ORDINAL ) ? "Author certficate: " : "Distributor" + i + " certificate : ";
                 getPrompter().notify( msg + item.getKeyLocation() );
             }