summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjm.jaemin.kim <jm.jaemin.kim@samsung.com>2014-09-16 20:47:14 +0900
committerjm.jaemin.kim <jm.jaemin.kim@samsung.com>2014-09-16 20:47:14 +0900
commit6e2b366057230b9d1044034824fd6195eab6edcb (patch)
treee11a71c1f280273ab960575f6187e90425be4cf1
parent740387c35319d8eff386fb841cef9779721a29fb (diff)
downloadnativeplatform-eplugin-6e2b366057230b9d1044034824fd6195eab6edcb.tar.gz
nativeplatform-eplugin-6e2b366057230b9d1044034824fd6195eab6edcb.tar.bz2
nativeplatform-eplugin-6e2b366057230b9d1044034824fd6195eab6edcb.zip
MISC : added null check statement
added null check statement Change-Id: I8aeebf84163b22d67f1a121cbb0cd73510438ef4 Signed-off-by: jm.jaemin.kim <jm.jaemin.kim@samsung.com>
-rw-r--r--org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java
index 0d9ae33c..456a0e08 100644
--- a/org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java
+++ b/org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java
@@ -165,11 +165,13 @@ public class TizenPlatformProjectWizard extends TizenProjectWizard {
result = super.performFinish();
try {
- File file = new File(newProject.getLocation().toString() + "/.git");
- if (file.exists()) {
- Repository gitRepos = FileRepositoryBuilder.create(file);
- if (!gitRepos.getDirectory().exists()) {
- gitRepos.create();
+ if (newProject !=null) {
+ File file = new File(newProject.getLocation().toString() + "/.git");
+ if (file.exists()) {
+ Repository gitRepos = FileRepositoryBuilder.create(file);
+ if (!gitRepos.getDirectory().exists()) {
+ gitRepos.create();
+ }
}
}
} catch (IOException e) {