[Red5devs] Prevention of NPE in Input
Joachim Bauch
jojo at struktur.de
Wed Jul 26 04:26:52 EDT 2006
Mondain wrote:
> Devs,
> I noticed a point where an NullPointerException may occur in
> org.red5.io.amf.Input
>
> 1. Add update member to represent a default absolute minimum value
>
> protected byte currentDataType = Byte.MIN_VALUE ;
>
> 2. Change the readDataType() method to always return 'something' and not
> cause an NPE
Hmm, shouldn't this better raise a proper exception instead of returning
something that's not in the input buffer?
Joachim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4355 bytes
Desc: S/MIME Cryptographic Signature
Url : http://osflash.org/pipermail/red5devs_osflash.org/attachments/20060726/438470c0/smime.bin
More information about the Red5devs
mailing list