Replies: 2 comments
-
@jrabun it's not a feature, please submit a PR so that an empty list. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed a
NullPointerException
in my application's logs, and it was coming from thePage.getItemsAsList()
method. As discussed in #271 , the Client's HTTP layer returns null in the case of a 404 error (which may occur for various reasons). This means theT[] items
array created by a call toClient.getQueues()
may end up null. However,Page.getItemsAsList()
callsArrays.asList(items)
without checking to see ifitems
is null, which may result in an NPE.I wasn't sure if this behavior is a bug or a "feature", so I thought I'd ask here first before opening an issue. I can of course check to see whether
items
is null myself before attempting to convert it to a list, so this isn't a deal-breaker. However, I would have expected this method to return null, or perhaps an empty list, rather than throwing an NPE.Beta Was this translation helpful? Give feedback.
All reactions