[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Updated: (VELOCITY-759) NullPointerException in Foreach.java
From:       "Rachid (JIRA)" <dev () velocity ! apache ! org>
Date:       2010-03-15 12:44:27
Message-ID: 1423166127.264611268657067192.JavaMail.jira () brutus ! apache ! org
[Download RAW message or body]


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

Rachid updated VELOCITY-759:
----------------------------

    Attachment: NullPointer-Foreach.patch

This file patches two possible nullpointerexceptions

> NullPointerException in Foreach.java - PatchAvailable
> -----------------------------------------------------
> 
> Key: VELOCITY-759
> URL: https://issues.apache.org/jira/browse/VELOCITY-759
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Reporter: Rachid
> Priority: Trivial
> Attachments: NullPointer-Foreach.patch
> 
> 
> I checked out the code from http://svn.apache.org/repos/asf/velocity/engine/trunk/ \
> I think this is version 1.6.x because it is listed on \
> http://velocity.apache.org/download.cgi But I'm not sure.  When I was playing with \
> the Velocity Template Engine I got a NullPointerException. Maybe it is because of \
> my unusual configuration that this exception didn't occured before to others. But \
> in my opinion this kind of Exceptions may never occur.  To be specific, the \
> Exception is thrown on line 225 in Foreach.java  if \
> (!hasNextName.equals("velocityHasNext"))  When the variable hasNextName equals null
> hasNextName is a deprecated config setting. It is assigned on line 210: hasNextName \
> = rsvc.getString(RuntimeConstants.HAS_NEXT_NAME); The included patch makes it \
> NullPointer save: if (!"velocityHasNext".equals(hasNextName))

-- 
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic