#49 NumberFormatException

Cerrada
aberta %!s(int64=6) %!d(string=hai) anos por tianxiaogu · 1 comentarios

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) ```

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).
Accede para unirte á conversa.
Sen fito
Sen asignado
2 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.