You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Kevin Connor Arpe <ke...@gmail.com> on 2013/07/29 17:27:28 UTC

NullPointerException

Hi,

Yet another mail.

Ref:
http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/XMLAbstractTranscoder.java

In method: public void transcode(TranscoderInput input, TranscoderOutput
output)

This line causes NullPointerException if the key is missing:
boolean b = ((Boolean)hints.get(KEY_XML_PARSER_VALIDATING)).booleanValue();

The few lines above carefully check if various keys exist and throw
meaningful exceptions if missing.  Can you please add the same check for
this key?

Kind regards,
Kevin Connor ARPE
Hongkong

Re: NullPointerException

Posted by Kevin Connor Arpe <ke...@gmail.com>.
Craig L Russell (Secretary, Apache Software Foundation) has acknowledged
receipt of my ICLA.


On Tue, Jul 30, 2013 at 3:32 PM, Kevin Connor Arpe <ke...@gmail.com>wrote:

> Pascal,
>
> Great idea.  *shame*  I should have thought of this idea earlier!  I found
> the matching bug: https://issues.apache.org/jira/browse/BATIK-946.  I
> created a patch and attached to the issue.
>
> Regarding ICLA <http://www.apache.org/licenses/icla.txt>, I have never
> signed one for Apache.  If necessary, please let me know and I will submit.
>
> Thanks,
> Arpe
>
>
> On Tue, Jul 30, 2013 at 2:59 PM, Pascal Sancho <ps...@gmail.com>wrote:
>
>> Hi,
>>
>> you should check if there is a similar issue on Jira bugtracker [1], and
>> if not, create a new issue.
>> The complete list of Batik open issues is there [2].
>>
>> [1] https://issues.apache.org/jira/
>> [2]
>> https://issues.apache.org/jira/issues/?jql=project%20%3D%20BATIK%20AND%20resolution%20%3D%20Unresolved%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20ORDER%20BY%20priority%20DESC
>>
>> --
>> Pascal
>>
>>
>> 2013/7/29 Kevin Connor Arpe <ke...@gmail.com>
>>
>>> Hi,
>>>
>>> Yet another mail.
>>>
>>> Ref:
>>> http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/XMLAbstractTranscoder.java
>>>
>>> In method: public void transcode(TranscoderInput input, TranscoderOutput
>>> output)
>>>
>>> This line causes NullPointerException if the key is missing:
>>> boolean b =
>>> ((Boolean)hints.get(KEY_XML_PARSER_VALIDATING)).booleanValue();
>>>
>>> The few lines above carefully check if various keys exist and throw
>>> meaningful exceptions if missing.  Can you please add the same check for
>>> this key?
>>>
>>> Kind regards,
>>> Kevin Connor ARPE
>>> Hongkong
>>>
>>
>>
>>
>> --
>> pascal
>>
>
>

Re: NullPointerException

Posted by Kevin Connor Arpe <ke...@gmail.com>.
Pascal,

Great idea.  *shame*  I should have thought of this idea earlier!  I found
the matching bug: https://issues.apache.org/jira/browse/BATIK-946.  I
created a patch and attached to the issue.

Regarding ICLA <http://www.apache.org/licenses/icla.txt>, I have never
signed one for Apache.  If necessary, please let me know and I will submit.

Thanks,
Arpe


On Tue, Jul 30, 2013 at 2:59 PM, Pascal Sancho <ps...@gmail.com>wrote:

> Hi,
>
> you should check if there is a similar issue on Jira bugtracker [1], and
> if not, create a new issue.
> The complete list of Batik open issues is there [2].
>
> [1] https://issues.apache.org/jira/
> [2]
> https://issues.apache.org/jira/issues/?jql=project%20%3D%20BATIK%20AND%20resolution%20%3D%20Unresolved%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20ORDER%20BY%20priority%20DESC
>
> --
> Pascal
>
>
> 2013/7/29 Kevin Connor Arpe <ke...@gmail.com>
>
>> Hi,
>>
>> Yet another mail.
>>
>> Ref:
>> http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/XMLAbstractTranscoder.java
>>
>> In method: public void transcode(TranscoderInput input, TranscoderOutput
>> output)
>>
>> This line causes NullPointerException if the key is missing:
>> boolean b =
>> ((Boolean)hints.get(KEY_XML_PARSER_VALIDATING)).booleanValue();
>>
>> The few lines above carefully check if various keys exist and throw
>> meaningful exceptions if missing.  Can you please add the same check for
>> this key?
>>
>> Kind regards,
>> Kevin Connor ARPE
>> Hongkong
>>
>
>
>
> --
> pascal
>

Re: NullPointerException

Posted by Pascal Sancho <ps...@gmail.com>.
Hi,

you should check if there is a similar issue on Jira bugtracker [1], and if
not, create a new issue.
The complete list of Batik open issues is there [2].

[1] https://issues.apache.org/jira/
[2]
https://issues.apache.org/jira/issues/?jql=project%20%3D%20BATIK%20AND%20resolution%20%3D%20Unresolved%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20ORDER%20BY%20priority%20DESC

--
Pascal


2013/7/29 Kevin Connor Arpe <ke...@gmail.com>

> Hi,
>
> Yet another mail.
>
> Ref:
> http://svn.apache.org/repos/asf/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/XMLAbstractTranscoder.java
>
> In method: public void transcode(TranscoderInput input, TranscoderOutput
> output)
>
> This line causes NullPointerException if the key is missing:
> boolean b = ((Boolean)hints.get(KEY_XML_PARSER_VALIDATING)).booleanValue();
>
> The few lines above carefully check if various keys exist and throw
> meaningful exceptions if missing.  Can you please add the same check for
> this key?
>
> Kind regards,
> Kevin Connor ARPE
> Hongkong
>



-- 
pascal