#49 NumberFormatException

닫힘
tianxiaogu6 년 전을 오픈 · 1개의 코멘트
tianxiaogu 코멘트됨, 6 년 전

Input may not be a valid int number.

Reproduce:

  1. Save a movie.
  2. Edit the movie and clear Times watched.
  3. Touch any other place to chagne focus.

Screenshot: http://gutianxiao.com/sata/org.notabug.lifeuser.moviedb-1334/step-1334.png

// java.lang.NumberFormatException: Invalid int: ""
//  at java.lang.Integer.invalidInt(Integer.java:138)
//  at java.lang.Integer.parseInt(Integer.java:358)
//  at java.lang.Integer.parseInt(Integer.java:334)
//  at org.notabug.lifeuser.moviedb.activity.DetailActivity$6.onFocusChange(DetailActivity.java:812)
//  at android.view.View.onFocusChanged(View.java:5723)
//  at android.widget.TextView.onFocusChanged(TextView.java:8224)
//  at android.view.View.clearFocusInternal(View.java:5605)
//  at android.view.View.clearFocus(View.java:5585)
//  at android.view.ViewGroup.clearFocus(ViewGroup.java:981)
//  at android.view.ViewGroup.clearFocus(ViewGroup.java:981)
//  at android.view.ViewGroup.clearFocus(ViewGroup.java:981)
//  at android.view.View.setFlags(View.java:10594)
//  at android.view.View.setVisibility(View.java:7431)
//  at org.notabug.lifeuser.moviedb.activity.DetailActivity$9.onAnimationStart(DetailActivity.java:890)
//  at android.view.animation.Animation$1.run(Animation.java:362)
//  at android.os.Handler.handleCallback(Handler.java:739)
//  at android.os.Handler.dispatchMessage(Handler.java:95)
//  at android.os.Looper.loop(Looper.java:148)
//  at android.app.ActivityThread.main(ActivityThread.java:5417)
//  at java.lang.reflect.Method.invoke(Native Method)
//  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
//  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Input may not be a valid `int` number. Reproduce: 1. Save a movie. 2. Edit the movie and clear `Times watched`. 3. Touch any other place to chagne focus. Screenshot: <http://gutianxiao.com/sata/org.notabug.lifeuser.moviedb-1334/step-1334.png> ``` // java.lang.NumberFormatException: Invalid int: "" // at java.lang.Integer.invalidInt(Integer.java:138) // at java.lang.Integer.parseInt(Integer.java:358) // at java.lang.Integer.parseInt(Integer.java:334) // at org.notabug.lifeuser.moviedb.activity.DetailActivity$6.onFocusChange(DetailActivity.java:812) // at android.view.View.onFocusChanged(View.java:5723) // at android.widget.TextView.onFocusChanged(TextView.java:8224) // at android.view.View.clearFocusInternal(View.java:5605) // at android.view.View.clearFocus(View.java:5585) // at android.view.ViewGroup.clearFocus(ViewGroup.java:981) // at android.view.ViewGroup.clearFocus(ViewGroup.java:981) // at android.view.ViewGroup.clearFocus(ViewGroup.java:981) // at android.view.View.setFlags(View.java:10594) // at android.view.View.setVisibility(View.java:7431) // at org.notabug.lifeuser.moviedb.activity.DetailActivity$9.onAnimationStart(DetailActivity.java:890) // at android.view.animation.Animation$1.run(Animation.java:362) // at android.os.Handler.handleCallback(Handler.java:739) // at android.os.Handler.dispatchMessage(Handler.java:95) // at android.os.Looper.loop(Looper.java:148) // at android.app.ActivityThread.main(ActivityThread.java:5417) // at java.lang.reflect.Method.invoke(Native Method) // at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) // at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) ```
nvb 코멘트됨, 6 년 전
소유자

Thank you for the clear report! It has been fixed in commit c09380e2da (together with the rating, which suffered from the same problem).

Thank you for the clear report! It has been fixed in commit c09380e2da8ec7822c375d6ec40133430121377d (together with the rating, which suffered from the same problem).
nvb 6 년 전가 Close
로그인하여 이 대화에 참여
마일스톤 없음
담당자 없음
참여자 2명
로딩중...
취소
저장
아직 콘텐츠가 없습니다.