# Try catch...not working

**URL:** <https://forum.kirupa.com/t/try-catch-not-working/289929>\
**Category:** Uncategorized\
**Created:** [June 7, 2009, 2:28pm UTC](https://forum.kirupa.com/t/try-catch-not-working/289929 "2009-06-07T14:28:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![outback](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@outback](https://forum.kirupa.com/u/outback)\
**Post date:** [June 7, 2009, 2:28pm UTC](https://forum.kirupa.com/t/try-catch-not-working/289929/1 "2009-06-07T14:28:28Z")

</div>

Hi all,

I’m having a problem trying to disable an error message, I was told to use the folowing code:

```auto
 try{
//bad line of error
}catch(err:Error){}

```

what part of my line of error should I use?

TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at \<anonymous\>()[los\_poseidos\_fla.MainTimeline::frame1:118]

Thanks
