John,
It’s my understanding that using fileList!! would mean that it would NPE if it’s null. I looked at the Java code and it can return a null. (I don’t know why or what that signifies, but that’s my reading of the code).
In this particular case, I am electing to do a null value check (==null) and then take an appropriate action. There are cases when you are certain that you won’t get a null that the !! option makes sense.
I am using Kotlin with NetKernel and I am going to review the internal code of NetKernel to figure out when and where null values could be returned and when they could not and start to either request a source code change to mark them with annotations or build an annotation file. (I have to research both of these approaches to see which I want to use).
– Randy