Google Answers Logo
View Question
Q: 'null" is null or not an object ( Answered 5 out of 5 stars,   0 Comments )
Subject: 'null" is null or not an object
Category: Computers > Internet
Asked by: eloine-ga
List Price: $20.00
Posted: 17 Jul 2003 17:03 PDT
Expires: 16 Aug 2003 17:03 PDT
Question ID: 232251
I'm building a beta website for a college and so far many pages I have
built. I have built mostly on a Mac and never experianced any error
messages on all the Mac browsers I tested until IE 6 on a PC and now
there is an error on every page. I don't know hardly any code to fix
it and this is what it says...

Error:'null" is null or not an object
Code: 0

I have no idea when I look at the code where to focus my attention.
Does anyone have a clue?
Subject: Re: 'null" is null or not an object
Answered By: maniac-ga on 17 Jul 2003 19:00 PDT
Rated:5 out of 5 stars
Hello Eloine,

That certainly looks like a nice site and is pretty fast to load on my
creaking modem.

To answer your question, I'll look at it in two parts. For the
specific message
  "null" is null or not an object
basically tells you that the item being referred is not initialized or
null. I found that explanation on sites such as
or several others by searching using the phrase
 "null is null or not an object"
with Google. Based on what I see in the code, this is a reasonable

The line (50) and character (3) points to the line
near the bottom of function P7_setScroller. I loaded the source of
your file into emacs (an editor I use) and enabled java mode to
highlight keywords and matching braces. If your tools can't do
something like this - I may be able to suggest something that is low /
no cost to use instead. Using emacs, I found that the code block after
   if((g=MM_findObj(a))!=null && (d=MM_findObj(b))!=null){
ends on the line 49. So there is a case where g is "null" when the
code reaches line 50 and causes the error. I don't know why this fails
on the PC and works on the Mac - but this piece of code certainly has
a bug.

The fix may be as simple as moving the close brace from line 49 to 50.
As another solution, note that the next function (P7_moveScroll) is
coded differently and avoids this problem - adopting that style in
P7_setScroller would also be a suitable fix.

Let me know you need additional help through a clarification request.

eloine-ga rated this answer:5 out of 5 stars and gave an additional tip of: $20.00
awsome! I have been posting to a bunch of forums and since I'm not
that much of a tech head I couldn't understand what people answered
back.  After reading your suggestions in an easy way of talking I
found that if I just deleted that last line I no longer got the error.
When I went back and read the more complicated stuff on the other
forums it started to make some sense. You must be joking on how fast
the site loads though! Thanks, E

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy