diff options
author | Gun Kim <gune.kim@samsung.com> | 2014-06-20 16:08:22 +0900 |
---|---|---|
committer | Gun Kim <gune.kim@samsung.com> | 2014-07-04 16:39:19 +0900 |
commit | c36065a86c6f801d94f8f2617e57b0a55305e0c9 (patch) | |
tree | 49b8c5d08c6fd6cfe65860b747dc57b99ccd2d36 | |
parent | 342efcfd4f19cc82e1b93853177ba1f651bc36fe (diff) | |
download | common-eplugin-c36065a86c6f801d94f8f2617e57b0a55305e0c9.tar.gz common-eplugin-c36065a86c6f801d94f8f2617e57b0a55305e0c9.tar.bz2 common-eplugin-c36065a86c6f801d94f8f2617e57b0a55305e0c9.zip |
MISC: fixed bug that cannot build application.
Fixed bug that cannot build application when unsupported project exists in workspace.
Change-Id: Ied5032990d682149ad453259dace5ec74ffa1479
Signed-off-by: Gun Kim <gune.kim@samsung.com>
-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; |