Change-Id: Idb668059e70c7b2a566c9e315586572c8ae8a02c
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
String rootId = SmartBuildInterface.getInstance().getRootstrapIDFromTargetID(targetId);
PlatformRootstrap rt = RootstrapManager.getRootstrap(rootId);
List<String> args = new ArrayList<String>();
+ if (rt == null) {
+ return args.toArray(new String[0]);
+ }
args.add(BUILD_SUBCOMMAND);
args.add(ARCH_OP);
args.add(rt.getArch());
String targetId = PlatformConfigurationManager.getBuildTargetName(config);
String rootId = SmartBuildInterface.getInstance().getRootstrapIDFromTargetID(targetId);
PlatformRootstrap rootstrap = RootstrapManager.getRootstrap(rootId);
+ if (rootstrap == null) {
+ return false;
+ }
List<String> rpms = getRpmFiles(rootstrap);
if (rpms.isEmpty()) {
return false;