nextcloud / news-android

📱🗞️ Android client for the Nextcloud news/feed reader app
https://play.google.com/store/apps/details?id=de.luhmer.owncloudnewsreader
GNU Affero General Public License v3.0
689 stars 257 forks source link

"Attempt to invoke virtual method on a null object reference" during fetch #995

Closed aicantar closed 3 years ago

aicantar commented 3 years ago

I'm using Nextcloud News installed on a Hetzner Storage Share instance with this app. The app refuses to fetch both unread (I have no unread feeds) and read feeds displaying the message as seen on the screenshot below instead.

Error text:

Attempt to invoke virtual method 'int com.google.gson.JsonArray.size()' on a null object reference

The app successfully fetches the list of feeds and displays them in the left menu, it fails, however, to fetch the articles themselves.

The Nextcloud app itself works properly.

Steps to reproduce:

  1. On a Hetzner Storage Share instance, install the Nextcloud News app
  2. Connect to that instance in the mobile app
  3. Observe the error

System information:

David-Development commented 3 years ago

@aicantar Are you using the manual login or Single Sign On? If you have the Nextcloud News App installed on the device please give the SingleSignOn a try as the manual login is deprecated.

aicantar commented 3 years ago

@David-Development yeah, it works using SSO, thanks. But why was the manual login deprecated? Do you plan to remove it entirely eventually?

I'm using Nextcloud to store files encrypted using rclone and I can't view these files using the standard Nextcloud Files app which makes it useless in my case. Having to install a separate app just to log into the news reader is a strange approach :thinking:

stefan-niedermann commented 3 years ago

Do you plan to remove it entirely eventually?

While i am not the maintainer of the News Android app, i think i can safely say: Yes, it will (hopefully) be removed in the future.

Actually SSO is the only reasonable way to log in in the long term :wink: It might be a bit strange in your very special use case, where you don't need the Files app. The great majority of all users will come into contact with Nextcloud via the Files app though and extend their ecosystem to third party apps.

To mention just a few benefits of the SSO:

I recommend you to watch @David-Development s talk at the Nextcloud conference 2020 for more information :point_left:.

which makes it useless in my case.

Yeah, there is this very special edge case, where you only want to use one third party app and not the Nextcloud app. So what? No you have a use case :smile:! Just don't use it. Look at it as a dependency, like a module of the News app, just that it has its own icon. Compared to the benefits, this "drawback" is quite small, no? :slightly_smiling_face:

Having to install a separate app just to log into the news reader is a strange approach thinking

Let's have a look what Google does: You set up one Google Account on your phone and have access to the Play Store, GMail, Maps and a docent other apps. Removing one Google core component will make the other apps useless - It's a similar approach.

aicantar commented 3 years ago

I definitely can live with one more unused app on my phone. Phones these days bundle tons of apps of questionable usefulness anyway. I was just asking about the plans for the future :P.

Thanks y'all for your time, I think this ticket can be considered resolved and closed.