diff options
-rw-r--r-- | org.tizen.common/src/org/tizen/common/core/application/tproject/TprojectHandler.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/org.tizen.common/src/org/tizen/common/core/application/tproject/TprojectHandler.java b/org.tizen.common/src/org/tizen/common/core/application/tproject/TprojectHandler.java index 7beae18a1..a07850719 100644 --- a/org.tizen.common/src/org/tizen/common/core/application/tproject/TprojectHandler.java +++ b/org.tizen.common/src/org/tizen/common/core/application/tproject/TprojectHandler.java @@ -41,6 +41,7 @@ import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.CoreException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.tizen.common.ITizenProject; import org.tizen.common.core.application.PackageResourceInfo; import org.tizen.common.core.application.TizenProjectDescription; import org.tizen.common.util.ProjectUtil; @@ -192,7 +193,13 @@ public class TprojectHandler { List<PackageResourceInfo> resInfoList = new ArrayList<PackageResourceInfo>(); Package pkg = tProject.getPackage(); if ( pkg == null ) { - return ProjectUtil.getTizenProject(project).getTizenPkgInfoStore().getDefaultBlackList(); + ITizenProject tizenProject = ProjectUtil.getTizenProject(project); + if ( tizenProject != null ) { + return tizenProject.getTizenPkgInfoStore().getDefaultBlackList(); + } + else { + return resInfoList; + } } Blacklist blacklist = pkg.getBlacklist(); PackageResourceInfo pkgResInfo = null; |