Skip to content

Commit

Permalink
捕捉了LemonBubble.force()的空指针异常
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonsoft committed Apr 6, 2017
1 parent ebb46c3 commit b789df9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LemonBubble/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,11 @@ public void run() {
* 强制关闭当前正在显示的泡泡控件
*/
public void forceHide() {
_container.dismiss();
try {
_container.dismiss();
} catch (NullPointerException e) {
System.err.println("未创建LemonBubble时调用了forceHide(),异常已经捕捉。");
}
this.haveInit = false;
}

Expand Down

0 comments on commit b789df9

Please sign in to comment.