567 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
iamdok says

A file of mine was rejected this morning because it had an error. The error was not in the swf but the reviewer said it appeared when he tried to re-compile the fla.

The problem is that however hard I try I cannot replicate the error myself.

I have temporarily removed my custom class path to see if there was a forgotton custom class, but Nothing. I’ve double checked the xml, the upload package, the publish paths, ets, but still no Error. We’re both using CS5 , and I always perform the above checks before an upload anyway.

The reviewer referred the error to me which was a generic error about a null object in a certain method, but having reviewed the method again I don’t see any suspect code. I do have a try catch statement in there, which will definitely throw an error the first time it’s run, but that should be caught by the catch part of the statement.

My question is, it there anything else that I’m missing? Is there a possibility that the reviewer’s CS5 IDE is compiling differently than my CS5 IDE ? Is there a possibility that the try catch statement is not catching the error the odd time, and the reviewer’s recompilation was just one of those times?

I just don’t want to reupload the package and have the same thing happen again in 4 days time! So I’m puttin it out there in case anyone has any ideas, what else to try. Here is the try catch statement. (When compiling I don’t even get a snif of an error. (strict mode, wanring mode, all on).

//check for existing strikethorugh & remove
    try
    {
        var strike:MovieClip = MovieClip(menu.getChildByName(word.toLowerCase()));
        strike.graphics.clear();
        menu.removeChild(strike);
        strike = null;
        return;
    }
    catch(e:Error)
    {
        trace("no strike to remove");
    }
2010 posts
  • Has referred 50+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 more
bitfade says

i think you’ll better ask reviewer to compile with debug symbols.

this way he can give more info

2587 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

Can you paste out the error here?

567 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
iamdok says

Bitfade,

Well you know how it is, you don’t exactly get to have a sit down brainstorm session with your rejecting reviewer ;) But yes, perhaps a specific line would be a help. What what I don’t understand is how am I not getting this error if the reviewer is getting the error. Since I’ve removed my custom class path and restarted flash, there is no way that I’m using any assets from outside the upload package! Weird.

Pheonix,

As i said above, its generic, but here it is anyway.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at narrative_fla::MainTimeline/modifyWord()
      at narrative_fla::MainTimeline/setDefaults()
      at narrative_fla::MainTimeline/gotXml()
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/onComplete()

Thanks

4140 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Located in Brazil
+3 more
tsafi says

Check good your” import flash” statement on the class if missing . That’s the only thing i can think of base on the Error #1009, this error will not jump as default, and fast machine will not throw this error sometime so maybe this is why you don’t see it, and try to debug your file on run time on click event

3072 posts
  • Has referred 50+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Had an item featured on Envato Market
+5 more
wickedpixel says

That try method would not hide all the errors. You better check if you have a “strike” before using it. Both for clearing the graphics and removing from stage.

567 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
iamdok says

The reviewer compiled the file using the IDE debugger and it was showing the error not to be coming from the try catch, but from a later line that relied on earlier string operations using IndexOf etc. (searching for words in a body of text).

So its possible that my monster machine was eating those operations for breakfast, while the reviewers wasn’t so hungry! Though I’d imagine this is not a problem except when dealine with major calculations.

Regarding the try catch, the strike is definitely not there the first two times the statement is run, but this is the point of the try catch statement. So when the “strike” is there, the “return” line cuts short the function.

Will see what happens. :stress:

2587 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

You could request a whole team review where all reviewers review the file.

2309 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
theflyingtinman says

Your problem is that these lines:

var frameStart:Rectangle = menu.story.getCharBoundaries(startIndex);
var frameEnd:Rectangle = menu.story.getCharBoundaries(endIndex);

are failing and returning null for frameStart and frameEnd

then the error is generated when you later reference them in

var w:Number = frameEnd.x – frameStart.x;

(I’m using CS4 – shouldn’t make a difference, but did you try compiling in CS4 ?)

2309 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has been a beta tester for an Envato feature
+5 more
theflyingtinman says

This may shed some light on the problem: http://bugs.adobe.com/jira/browse/FP-1430

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by