You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "zhzhzoo (JIRA)" <ji...@apache.org> on 2014/08/02 12:26:11 UTC

[jira] [Commented] (FLEX-34451) swfdump throws NullPointerException parsing DEFINEFONT3 Tag

    [ https://issues.apache.org/jira/browse/FLEX-34451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14083499#comment-14083499 ] 

zhzhzoo commented on FLEX-34451:
--------------------------------

I'll attach the swf file.

> swfdump throws NullPointerException parsing DEFINEFONT3 Tag
> -----------------------------------------------------------
>
>                 Key: FLEX-34451
>                 URL: https://issues.apache.org/jira/browse/FLEX-34451
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Adobe Flex SDK 4.6 (Release)
>            Reporter: zhzhzoo
>            Priority: Minor
>
> I was dumping a swf file using swfdump when I encountered a NullPointerException. The file does't conform to the swf format spec but Adobe Flash Player can play it.
> {code}
> localhost:font zhzhzoo$ java -jar /Applications/Apache\ Flex/SDK/lib/swfdump.jar  ~/Desktop/xxx/page003.swf 
> <!-- Parsing swf file:/Users/zhzhzoo/Desktop/dangdang/page003.swf -->
> <!-- ?xml version="1.0" encoding="UTF-8"? -->
> <swf xmlns='http://macromedia/2003/swfx' version='9' framerate='16384' size='9700x14200' compressed='false' >
>   <!-- framecount=1 length=177193 -->
>   <FileAttributes useDirectBlit='false' useGPU='false' hasMetadata='false' actionScript3='true' suppressCrossDomainCaching='false' swfRelativeUrls='false' useNetwork='true'/>
>   <SetBackgroundColor color='#FFFFFF'/>
>   <DefineFont3 id='4' font='' numGlyphs='3' italic='false' bold='false' ansi='false' wideOffsets='true' wideCodes='true' shiftJIS='false' langCode='0' hasLayout='false' ascent='0' descent='0' leading='0' kerningCount='0' codepointCount='3'>
>     <glyph codepoint='0(?)'>
> Exception in thread "main" java.lang.NullPointerException
> 	at flash.swf.tools.SwfxPrinter.printShapeWithTabs(SwfxPrinter.java:1108)
> 	at flash.swf.tools.SwfxPrinter.defineFont2(SwfxPrinter.java:1632)
> 	at flash.swf.tools.SwfxPrinter.defineFont3(SwfxPrinter.java:1646)
> 	at flash.swf.tags.DefineFont3.visit(DefineFont3.java:66)
> 	at flash.swf.TagDecoder.decodeTags(TagDecoder.java:206)
> 	at flash.swf.TagDecoder.parse(TagDecoder.java:142)
> 	at flash.swf.tools.SwfxPrinter.dumpSwf(SwfxPrinter.java:2318)
> 	at flash.swf.tools.SwfxPrinter.main(SwfxPrinter.java:2225)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)