[haXe] my haxe game, finally ready

edA-qa mort-ora-y eda-qa at disemia.com
Wed Aug 1 21:39:52 CEST 2007


Nicolas Cannasse wrote:
> null pointer access
>     at fortress::TitlePalette/fortress:TitlePalette::onScoringToken()

Thank you for reporting that, but, curiously, is is this code:

	function onScoringToken( data : String )
	{
		var xml : Xml = Xml.parse( data ).firstElement();
		if( xml.nodeName != 'okay' )
			return;	//an error
					
		//trace( "first step: " + data );
		gameDriver.scoreToken = xml.get( "token" );

Can firstElement actually return a "null" value?!  Otherwise there
doesn't seem to be the possibility of a null pointer...

Or is it possible that haxe.http would call the onData function with a
null?  (I'm guessing this isn't the case since the null exception is in
my function and not in the parse command)


-- 
edA-qa mort-ora-y
Idea Architect
http://disemia.com/

Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.motion-twin.com/pipermail/haxe/attachments/20070801/b0b15e5a/signature.pgp


More information about the Haxe mailing list