Re: user management
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Re: user management




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: user management  
Glen Wells


Report This Message To A Moderator Edit/Delete Message


 
10-16-04 02:13 AM

Choi,

You cannot test for something being null in this way, because if it is null,
the Equals() method will not be available... and you get a
NullReferenceException, which is exactly what you are trying to avoid!

You should use if(objNavChannel == null).

Try this code to see what I mean:

string test = null;
try
{
if(test.Equals(null)) Response.Write("Equals() works!!<br>");
}
catch
{
Response.Write("Equals() does not work<br>");
}
try
{
if(test == null) Response.Write("== works!!<br>");
}
catch
{
Response.Write("== does not work<br>");
}


--
Glen Wells
www.cubik.co.uk



"choihead" <choihead@Hotmail.com> wrote in message
news:OtAf6EEsEHA.1816@TK2MSFTNGP09.phx.gbl...
> Line 286 is this
>
> //Error check for null Channel
>   if(objNavChannel.Equals(null))//Line 286
>   {
>    return table; //Early return
>   }
> So it is null and cannot return the table??
> "Stefan [MSFT]" <stefang@online.microsoft.com> ¦b¶l¥ó
> news:u8gKF8DsEHA.1692@TK2MSFTNGP10.phx.gbl ¤¤¼¶¼g... 
> rights. 
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm 
> http://www.gotdotnet.com/community/...nagement+Server 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register