Skip to content

Commit

Permalink
fix bug alibaba#23
Browse files Browse the repository at this point in the history
  • Loading branch information
董炼师 committed Sep 23, 2015
1 parent 2dfd6aa commit 8b885cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/alipay/euler/andfix/patch/PatchManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package com.alipay.euler.andfix.patch;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -151,6 +152,9 @@ private void cleanPatch() {
public void addPatch(String path) throws IOException {
File src = new File(path);
File dest = new File(mPatchDir, src.getName());
if(!src.exists()){
throw new FileNotFoundException(path);
}
if (dest.exists()) {
Log.d(TAG, "patch [" + path + "] has be loaded.");
return;
Expand Down

0 comments on commit 8b885cc

Please sign in to comment.