Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when adding unknown product with barcode in purchase mode #518

Closed
efelon opened this issue Apr 15, 2022 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@efelon
Copy link

efelon commented Apr 15, 2022

Build: F-Droid
Version: 2.2.0

Details

When starting after the crash:

  • unknown product is added to "Master data"
  • does not have a barcode assigned
  • all other information are saved
  • is not purchased (only added to "Master data")

Other attempts

  • when adding an unknown product manually (without barcode) in purchase mode, there is no crash.
  • when adding a known product with barcode there is no crash

Errorlog

--------- beginning of main
--------- beginning of crash
04-15 15:29:12.605 11782 11782 E AndroidRuntime: FATAL EXCEPTION: main
04-15 15:29:12.605 11782 11782 E AndroidRuntime: Process: xyz.zedler.patrick.grocy, PID: 11782
04-15 15:29:12.605 11782 11782 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object androidx.lifecycle.LiveData.getValue()' on a null object reference
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at xyz.zedler.patrick.grocy.util.BindingAdaptersUtil.setErrorMessage([BindingAdaptersUtil.java:1](http://bindingadaptersutil.java:1/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at xyz.zedler.patrick.grocy.databinding.FragmentChooseProductBindingImpl.executeBindings([FragmentChooseProductBindingImpl.java:69](http://fragmentchooseproductbindingimpl.java:69/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at androidx.databinding.ViewDataBinding.executePendingBindings([ViewDataBinding.java:5](http://viewdatabinding.java:5/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at androidx.databinding.ViewDataBinding[7.run](http://7.run/)([ViewDataBinding.java:19](http://viewdatabinding.java:19/))8.doFrame([ViewDataBinding.java:3](http://viewdatabinding.java:3/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at android.view.Choreographer[CallbackRecord.run](http://callbackrecord.run/)([Choreographer.java:1008](http://choreographer.java:1008/))[FrameDisplayEventReceiver.run](http://framedisplayeventreceiver.run/)([Choreographer.java:995](http://choreographer.java:995/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at android.os.Handler.handleCallback([Handler.java:938](http://handler.java:938/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at android.os.Handler.dispatchMessage([Handler.java:99](http://handler.java:99/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at android.os.Looper.loop([Looper.java:246](http://looper.java:246/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at [android.app](http://android.app/).ActivityThread.main([ActivityThread.java:8587](http://activitythread.java:8587/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at [com.android](http://com.android/).internal.os.RuntimeInit$[MethodAndArgsCaller.run](http://methodandargscaller.run/)([RuntimeInit.java:602](http://runtimeinit.java:602/))
04-15 15:29:12.605 11782 11782 E AndroidRuntime: at [com.android](http://com.android/).internal.os.ZygoteInit.main([ZygoteInit.java:1130](http://zygoteinit.java:1130/))
04-15 15:29:24.751 12233 12233 E r.patrick.groc: Not starting debugger since process cannot load the jdwp agent.
--------- beginning of system
@dominiczedler
Copy link
Collaborator

Thanks for reporting, this was already fixed in 46f55f2, the bugfix release will come tomorrow I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants