I have some code I wrote quite a while ago that opens a <File> object, and that processes it differently depending on whether or not <isDirectory()> returns <true> or not. If it does return <true>, then it creates a <String> object named <children> and sets it equal to the value the <File> object's <list()> returns.
But then before my code actually does anything with <children>, it checks it to see if it equals <null>. What would it mean for the value returned by <list()> to be <null>? Is that an error condition I should check for?
The code I referred to is pretty complex, so I won't include it here, but if you need an example, here's a pretty simple one.