a7mdfm / flexpaper

Automatically exported from code.google.com/p/flexpaper
1 stars 0 forks source link

Null Object Reference if CursorToolsVisible = false #133

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?

FP 1.40   on Mac

Please provide any additional information below.

In the FlexPaperViewer.mxml 

In the function bindStageEvents(e:Event)

contextMenu is initialized within the   if(CursorToolsVisible)  block, but then 
referenced outside of the if block causing a Null Object Reference if  
CursorToolsVisible is false.

Original issue reported on code.google.com by cft...@gmail.com on 21 Oct 2010 at 10:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I also got a similar issue at runtime with my custom mxml, compiled in 
FlashDevelop with Flex SDK 3.5. My FlexPaper.swc is compiled from sources and 
no change has been made in any way to the code.

[Fault] exception, information=TypeError: Error #1009: Il est impossible 
d'accéder à la propriété ou à la méthode d'une référence d'objet nul.

It runs fine if CursorToolsVisible="true".

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                xmlns:fp="com.devaldi.controls.flexpaper.*"
                layout="absolute" width="100%" height="100%">
    <fp:FlexPaperViewer 
        width="100%"
        height="100%"
        SwfFile="file.swf"
        CursorToolsVisible="false"
    />
</mx:Application>

Original comment by FL5...@gmail.com on 23 Oct 2010 at 4:53

GoogleCodeExporter commented 8 years ago
fixed in repository. Scheduled for release in 1.4.1

Original comment by erik.eng...@devaldi.com on 14 Nov 2010 at 10:24