directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DIRSERVER-1313) Potential NPEs while loading LDIFs in unit tests
Date Mon, 23 Feb 2009 10:37:01 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRSERVER-1313.
------------------------------------------

    Resolution: Fixed

Should be fixed with http://svn.apache.org/viewvc?rev=746949&view=rev.

> Potential NPEs while loading LDIFs in unit tests
> ------------------------------------------------
>
>                 Key: DIRSERVER-1313
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1313
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core-integ
>    Affects Versions: 1.5.4
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Emmanuel Lecharny
>             Fix For: 1.5.5
>
>
> There are potential NPEs while loading LDIFs in unit tests.
> Class: org.apache.directory.server.core.integ.state.AbstractState
> Method: protected void injectLdifs( DirectoryService service, InheritableSettings settings
)
> Lines 195 to 198.
> [...]
>     Class<?> clazz = Class.forName( className );
>     URL url = clazz.getResource( ldifFile );
>     URI uri = url.toURI();
>     File file = new File( uri );
> [...]
> There are no check here to see either the 'clazz', 'url',  'uri' or 'file' variables
are null. 
> If one of them is null, we'll get a NPE.

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


Mime
View raw message