You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Myles Bunbury (JIRA)" <ji...@apache.org> on 2010/10/08 14:47:33 UTC

[jira] Created: (AXIS2-4842) NPE in TempFileManager

NPE in TempFileManager
----------------------

                 Key: AXIS2-4842
                 URL: https://issues.apache.org/jira/browse/AXIS2-4842
             Project: Axis2
          Issue Type: Bug
            Reporter: Myles Bunbury


In TempFileManager, in the static initialization block, if tmpFiles is set to NULL because tmpDir.listFiles() returns NULL (eg. tmpDir does not exist), then a NPE occurs in the following for loop on line 191.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


[jira] Commented: (AXIS2-4842) NPE in TempFileManager

Posted by "Myles Bunbury (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919298#action_12919298 ] 

Myles Bunbury commented on AXIS2-4842:
--------------------------------------

Also of note, back in v1.4.1, if the necessary directories did not exist, they were created by Utils.createTempFile(String, InputStream, File). In v1.5.2, this automatic directory creation no longer occurs.

Should it?

> NPE in TempFileManager
> ----------------------
>
>                 Key: AXIS2-4842
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4842
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Myles Bunbury
>
> In TempFileManager, in the static initialization block, if tmpFiles is set to NULL because tmpDir.listFiles() returns NULL (eg. tmpDir does not exist), then a NPE occurs in the following for loop on line 191.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org