?
Solved

Null Reference Exception

Posted on 2013-06-07
3
Medium Priority
?
304 Views
Last Modified: 2013-06-07
Hey folks,
 How do I handle this?

Screen print of code attached.

sp
0
Comment
Question by:lrbrister
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 2000 total points
ID: 39229508
check for nothing (on SelectSingleNode) before querying for FirstChild
0
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39229522
Hi,
check for Nothing on the SelectSingleNode.
Can you post the content of the text variable?
If you know that there should be the result node inside please check if you have any namespaces included in your XML string, Namespaces / Namespace manager have to be created/added beforehand.
HTH
Rainer
0
 

Author Closing Comment

by:lrbrister
ID: 39229545
Well...duh on me.

Ever notice how you can stare at something for an hour and not pick up the problem?

But someone else can in a minute flat?

I'm killing me
0

Featured Post

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question