I’m trying to compile a library using comic and I’m getting a **LOT** of null 
pointer errors. They seem to be related to missing type information, although 
I’m not completely sure why the missing type information is causing these 
errors.

Some of the errors are resolved-able by adding type info, but not all.

I picked one at random to track down the issue:
https://paste.apache.org/8pLB <https://paste.apache.org/8pLB>

The line in question looks like this:
var codepoint:int = glyphs[i].codePoints[0];

glyphs[I] is a “GlyphInfo” instance. Either of the following two changes make 
this particular error go away:
var codepoint:* = glyphs[i].codePoints[0];
var codepoint:int = (glyphs[i] as GlyphInfo).codePoints[0];

I’m not really sure why these changes are necessary though…

Thoughts?
Harbs

Reply via email to