Skip to content

Commit

Permalink
develop version didn't add try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceDut committed Jan 10, 2018
1 parent 0e3b929 commit 26e8897
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ public SafeDispatchHandler(Callback callback) {

@Override
public void dispatchMessage(Message msg) {
try {
if (BuildConfig.DEBUG) {
super.dispatchMessage(msg);
} catch (Exception e) {
Log.d(TAG,"dispatchMessage Exception "+msg+" , "+e);
} catch (Error error){
Log.d(TAG,"dispatchMessage error "+msg+" , "+error);
} else {
try {
super.dispatchMessage(msg);
} catch (Exception e) {
Log.d(TAG, "dispatchMessage Exception " + msg + " , " + e);
} catch (Error error) {
Log.d(TAG, "dispatchMessage error " + msg + " , " + error);
}
}
}
}

0 comments on commit 26e8897

Please sign in to comment.