Browse Source

update

research/10.0
rinoux 6 years ago
parent
commit
381b5d9eed
  1. 3
      designer-base/src/main/java/com/fr/file/FileFILE.java

3
designer-base/src/main/java/com/fr/file/FileFILE.java

@ -194,11 +194,12 @@ public class FileFILE implements FILE {
* @return 输出流 * @return 输出流
*/ */
public OutputStream asOutputStream() { public OutputStream asOutputStream() {
if (file == null || !file.exists()) { if (file == null) {
return null; return null;
} }
OutputStream out; OutputStream out;
try { try {
StableUtils.makesureFileExist(file);
out = new FileOutputStream(file); out = new FileOutputStream(file);
} catch (Exception e) { } catch (Exception e) {
throw SessionLocalManager.createLogPackedException(e); throw SessionLocalManager.createLogPackedException(e);

Loading…
Cancel
Save