Commit 989fd814 authored by Alexander Diewald's avatar Alexander Diewald

Projects: Prevent NPE if the rename dialog for importing is cancelled

Issue-Ref: 3993
Issue-Url: https://af3-developer.fortiss.org/issues/3993Signed-off-by: Alexander Diewald's avatarAlexander Diewald <diewald@fortiss.org>
parent c5f2edb9
ExportProjectUtils.java 95b02d271335e46ce89f78c912f85236fc852988 GREEN
FileNameValidatorUtil.java c566595d083e756c20c919458d81e8a91ab0e10e GREEN
FolderOrProjectDialogUtils.java 14823ea1da085d019e21e50703f6f4e3fff8aa83 GREEN
ImportProjectUtils.java 465ab042df40cac46d5b17a1d469e865f89c6623 GREEN
ImportProjectUtils.java 87216991e47e14846f7affb49139a3dd2a71aba3 YELLOW
NewProjectUiUtils.java cd17cec67769d1c62c9923869c43293036d103e4 GREEN
ParsingUtils.java 7bbc27436511ee9d88f8a31f0b19462406d01517 GREEN
......@@ -170,6 +170,10 @@ public class ImportProjectUtils {
// Determine the file location of the target file.
URI targetFileURI = determineTargetFileLocation(
getDefaultGeneralProjectURI().appendSegment(sourceFileName));
if(targetFileURI == null) {
// Operation was cancelled --> No log message.
return;
}
// Copy the file, its associated library, and external documents.
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment