[Red5devs] Prevention of NPE in Input
jojo at struktur.de
Wed Jul 26 04:26:52 EDT 2006
> I noticed a point where an NullPointerException may occur in
> 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?
-------------- next part --------------
A non-text attachment was scrubbed...
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