summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {