Skip to content

Commit

Permalink
修复一处 stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Sep 27, 2024
1 parent 53426a1 commit 2582402
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unrelease

## 2.19.2

1. 修复 `--data-source-mapping-file` 指向的地址无效时的 stacktrace 。

## 2.19.1

1. 输出的UE代码的默认值也输出到 USTRUCT 申明中(不包含 `FString` )。
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.xresloader</groupId>
<artifactId>xresloader</artifactId>
<version>2.19.1</version>
<version>2.19.2</version>
<packaging>jar</packaging>
<name>xresloader</name>

Expand Down
10 changes: 7 additions & 3 deletions src/org/xresloader/core/ProgramOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -755,10 +755,14 @@ static public int dumpDataSourceMapping() {
}

try {
File dir = new File(file.getParent());
if (!dir.exists()) {
dir.mkdirs();
String dirPath = file.getParent();
if (dirPath != null && !dirPath.isEmpty()) {
File dir = new File(file.getParent());
if (!dir.exists()) {
dir.mkdirs();
}
}

out = new FileOutputStream(file);
} catch (IOException e) {
ProgramOptions.getLoger().error("Open data source mapping file %s failed.\n%s", dataSourceMappingFile,
Expand Down

0 comments on commit 2582402

Please sign in to comment.