You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "wan jian ming (JIRA)" <ji...@apache.org> on 2012/11/21 11:25:57 UTC
[jira] [Created] (VYSPER-335) NULL pointer exception.
wan jian ming created VYSPER-335:
------------------------------------
Summary: NULL pointer exception.
Key: VYSPER-335
URL: https://issues.apache.org/jira/browse/VYSPER-335
Project: VYSPER
Issue Type: Bug
Affects Versions: 0.7
Reporter: wan jian ming
public List<String> getInterestedResources(Entity entity) {
List<String> resources = getResourceList(entity);
List<String> result = new ArrayList<String>();
if(resources!=null) //this line is needed. otherwise will get NULL Pointer EXcpetion.
for (String resource : resources) {
ResourceState resourceState = getResourceState(resource);
if (ResourceState.isInterested(resourceState))
result.add(resource);
}
return result;
}
this also appears in getAvailableResources;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (VYSPER-335) NULL pointer exception.
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Fondermann reassigned VYSPER-335:
---------------------------------------
Assignee: Bernd Fondermann
> NULL pointer exception.
> -----------------------
>
> Key: VYSPER-335
> URL: https://issues.apache.org/jira/browse/VYSPER-335
> Project: VYSPER
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: wan jian ming
> Assignee: Bernd Fondermann
>
> public List<String> getInterestedResources(Entity entity) {
> List<String> resources = getResourceList(entity);
> List<String> result = new ArrayList<String>();
> if(resources!=null) //this line is needed. otherwise will get NULL Pointer EXcpetion.
> for (String resource : resources) {
> ResourceState resourceState = getResourceState(resource);
> if (ResourceState.isInterested(resourceState))
> result.add(resource);
> }
> return result;
> }
> this also appears in getAvailableResources;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (VYSPER-335) NullPointerException in
DefaultResourceRegistry
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Fondermann resolved VYSPER-335.
-------------------------------------
Resolution: Fixed
Fix Version/s: 0.8
> NullPointerException in DefaultResourceRegistry
> -----------------------------------------------
>
> Key: VYSPER-335
> URL: https://issues.apache.org/jira/browse/VYSPER-335
> Project: VYSPER
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: wan jian ming
> Assignee: Bernd Fondermann
> Fix For: 0.8
>
>
> public List<String> getInterestedResources(Entity entity) {
> List<String> resources = getResourceList(entity);
> List<String> result = new ArrayList<String>();
> if(resources!=null) //this line is needed. otherwise will get NULL Pointer EXcpetion.
> for (String resource : resources) {
> ResourceState resourceState = getResourceState(resource);
> if (ResourceState.isInterested(resourceState))
> result.add(resource);
> }
> return result;
> }
> this also appears in getAvailableResources;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (VYSPER-335) NullPointerException in
DefaultResourceRegistry
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernd Fondermann updated VYSPER-335:
------------------------------------
Summary: NullPointerException in DefaultResourceRegistry (was: NULL pointer exception.)
> NullPointerException in DefaultResourceRegistry
> -----------------------------------------------
>
> Key: VYSPER-335
> URL: https://issues.apache.org/jira/browse/VYSPER-335
> Project: VYSPER
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: wan jian ming
> Assignee: Bernd Fondermann
> Fix For: 0.8
>
>
> public List<String> getInterestedResources(Entity entity) {
> List<String> resources = getResourceList(entity);
> List<String> result = new ArrayList<String>();
> if(resources!=null) //this line is needed. otherwise will get NULL Pointer EXcpetion.
> for (String resource : resources) {
> ResourceState resourceState = getResourceState(resource);
> if (ResourceState.isInterested(resourceState))
> result.add(resource);
> }
> return result;
> }
> this also appears in getAvailableResources;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Work started] (VYSPER-335) NULL pointer exception.
Posted by "Bernd Fondermann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/VYSPER-335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on VYSPER-335 started by Bernd Fondermann.
> NULL pointer exception.
> -----------------------
>
> Key: VYSPER-335
> URL: https://issues.apache.org/jira/browse/VYSPER-335
> Project: VYSPER
> Issue Type: Bug
> Affects Versions: 0.7
> Reporter: wan jian ming
> Assignee: Bernd Fondermann
>
> public List<String> getInterestedResources(Entity entity) {
> List<String> resources = getResourceList(entity);
> List<String> result = new ArrayList<String>();
> if(resources!=null) //this line is needed. otherwise will get NULL Pointer EXcpetion.
> for (String resource : resources) {
> ResourceState resourceState = getResourceState(resource);
> if (ResourceState.isInterested(resourceState))
> result.add(resource);
> }
> return result;
> }
> this also appears in getAvailableResources;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira