Download & Open a file on Nextcloud raises an exception
- /e/ version: q
- Device model(s): FP3+
Summary
When I click on a file in Nextcloud to open it, if it needs to download it before, it downloads it, opens it but it raises an exception as well.
The problem
Steps to reproduce
Open Nextcloud application. Go to a file that you have not downloaded yet on your phone. Click on it to open it. It has happened with a PDF file and a KDBx file on my phone
What is the current behavior?
it downloads and opens the file (at least with the PDF. I have missed this with the KDB file) but it raises a Nextcloud exception on top of that :
************ CAUSE OF ERROR ************
java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.swiperefreshlayout.widget.SwipeRefreshLayout.setVisibility(int)' on a null object reference
at com.owncloud.android.ui.fragment.FileDetailActivitiesFragment.populateList(FileDetailActivitiesFragment.java:418)
at com.owncloud.android.ui.fragment.FileDetailActivitiesFragment.lambda$null$3$FileDetailActivitiesFragment(FileDetailActivitiesFragment.java:370)
at com.owncloud.android.ui.fragment.-$$Lambda$FileDetailActivitiesFragment$ZzLUj33qKg0e1Ki8Vd5bki8I6B4.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:940)
************ APP INFORMATION ************
ID: com.nextcloud.client
Version: 30140051
Build flavor: generic
************ DEVICE INFORMATION ************
Brand: Fairphone
Device: FP3
Model: FP3
Id: QQ3A.200805.001
Product: FP3
************ FIRMWARE ************
SDK: 29
Release: 10
Incremental: eng.root.20201102.155409
What is the expected correct behavior?
Nextcloud should download the file and open it, without raising an exception
Technical informations
Relevant logs (adb logcat
)
Relevant screenshots
Solutions
Workaround
I have no workaround for now, as the file is actually downloaded and openable
Possible fixes