Community
Participate
Working Groups
Source based, v_865 (aka 3.4 RC1). If the file tested on line 3111 happens to disappear before line 3113 (unlikely but possible) or is not readable for the current user (in which case exists() should still return true provided that the directory is readable), then an NPE would be thrown on line 3126.
Reading the code again, this is untrue. A failure to open the stream will jump the finally block of the innermost try statement.
Agreed, any exception on input stream opening line 3113 will be caught by the catch(Exception ex) block at line 3128 avoiding the finally block at line 3125. Verified for 3.4RC2 using v_868 code.