> OK. Now, I'm really getting pissed at CF!!

> I created a mapping that pointed to the same directory as
> the CFC.

> I created a custom tag path that pointed to the same
> directory as the
> CFC.

> Neither worked.  In fact, after removing those two items,
> CF is not
> giving a different error.

> I thought you could call a CFC, from the same directory,
> as another page
> without having to specify a path, setup a mapping or setup
> a custom tag
> path.

> Did this break in the Updater?

Hi Mike,

Not that I'm aware of...

I'd be willing to bet that the problem you're having with the null
pointer error is a result of this somewhere in your cfc:

<cfargument name="x" required="false">

Null pointer errors happen a lot when a default is not specified for a
cfargument tag. This to me is the most frustrating thing about the
lack of nulls in recent versions of CF -- not that we can't use them
in general (although that's frustrating) but that there is an
_EXTREMELY_ common circumstance which causes them OFTEN and is neither
intuitive nor well documented. If the error occurs while creating the
object (before init) I would bet that it calls method in the
soft-constructor which doesn't provide a not-required argument with no
default value -- and then of course attempts to use that undefined
argument which results in the null pointer error.

s. isaac dealey     434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234688
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to