diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_Android.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_Android.h index df61df31a9..4fc0053208 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_Android.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_Android.h @@ -218,12 +218,16 @@ public: writeCmakeFile (appFolder.getChildFile ("CMakeLists.txt")); - File extraAssets (getProject().getFile().getParentDirectory().getChildFile(androidExtraAssetsFolder.get())); - if (extraAssets.exists() && extraAssets.isDirectory()) + const String androidExtraAssetsFolderValue = androidExtraAssetsFolder.get(); + if (androidExtraAssetsFolderValue.isNotEmpty()) { - const File assetsFolder (appFolder.getChildFile ("src/main/assets")); - if (assetsFolder.deleteRecursively()) - extraAssets.copyDirectoryTo (assetsFolder); + File extraAssets (getProject().getFile().getParentDirectory().getChildFile(androidExtraAssetsFolderValue)); + if (extraAssets.exists() && extraAssets.isDirectory()) + { + const File assetsFolder (appFolder.getChildFile ("src/main/assets")); + if (assetsFolder.deleteRecursively()) + extraAssets.copyDirectoryTo (assetsFolder); + } } }