Calender Trigger [2.0] – Fatal Exception when pressing browse a sound file

in #utopian-io6 years ago

Project Information

Repository: https://github.com/rparkins999/CalendarTrigger
Project Name: Calendar Trigger
Publisher: https://github.com/rparkins999

Expected behaviour

When a user indicates that they would like to browse a sound file for after enabling notifications on "event end of action for class X" a user should be presented with a file picker to select a sound. (A user may be presented with a pre-defined list of available sounds from the default Android sounds instead).

Actual behaviour

When a user indicates that they would like to browse a sound file for after enabling notifications on "event end of action for class X" a fatal exception occurs.

How to reproduce

  1. From either a fresh install or existing install select "Create new event class" located within the top navigation bar.
  2. When the create new event class option is presented you can name your class anything. However, for clarity, this should be named "testClass"
  3. Submit the new name, you will be presented with the ability to select from the different actions that can be configured against a class. Select "Event end action for testClass".
  4. Enable "show a notification"
  5. Click browse for a sound file (written in italics at the bottom of the list) (The application will crash).

Logs

05-26 22:31:20.652 11789-11789/uk.co.yahoo.p1rpp.calendartrigger E/AndroidRuntime: FATAL EXCEPTION: main
    Process: uk.co.yahoo.p1rpp.calendartrigger, PID: 11789
    java.lang.NullPointerException: Attempt to get length of null array
        at uk.co.yahoo.p1rpp.calendartrigger.activites.l.b(Unknown Source:39)
        at uk.co.yahoo.p1rpp.calendartrigger.activites.FileListView.a(Unknown Source:30)
        at uk.co.yahoo.p1rpp.calendartrigger.activites.j.onViewCreated(Unknown Source:59)
        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1289)
        at android.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1557)
        at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1618)
        at android.app.BackStackRecord.executeOps(BackStackRecord.java:807)
        at android.app.FragmentManagerImpl.executeOps(FragmentManager.java:2386)
        at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2181)
        at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2136)
        at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043)
        at android.app.FragmentManagerImpl$1.run(FragmentManager.java:719)
        at android.os.Handler.handleCallback(Handler.java:790)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6494)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Environment

Tested on multiple different Android versions both using a physical device and emulators.

DeviceAndroid VersionEmulator/PhysicalReproducible?
Motorola 3 (3rd Generation)6.0.1PhysicalNo
Pixel 26.0EmulatedNo
Pixel 27.1EmulatedYes
Pixel 28.0EmulatedYes

Application Version: 2.0

Recording of the issue

The following video shows the issue in more detail, the video was taken on the 8.0 emulator.

Proof of work

Sort:  

Hello the bug has already been verified by the PO here
It doesn't work correctly when the internal file browser has never before been used, in particular if you've newly installed the app.

Your contribution has been evaluated according to Utopian rules and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post,Click here


Need help? Write a ticket on https://support.utopian.io/.
Chat with us on Discord.
[utopian-moderator]

Hey @tobias-g
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.17
TRX 0.15
JST 0.028
BTC 58647.98
ETH 2291.48
USDT 1.00
SBD 2.46