cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
801
Views
0
Helpful
2
Replies

How to check empty return from Get XML Document Data?

Roman Rodichev
Level 7
Level 7

If Get XML Document Data doesn't return a result, how do you test it? String.isEmpty() doesn't do the trick, it still throws the exception "java.lang.NullPointerException". I can't seem to be able to match that up to a cisco exception with a "On Exception Goto" step (which I put right before the XML Document Data step). Any clues anyone?

1 Accepted Solution

Accepted Solutions

Hi,

Try this:


variable=Get XML Document Data ()

if(variable == null) then

     true

     false

Gabriel.

View solution in original post

2 Replies 2

Hi,

Try this:


variable=Get XML Document Data ()

if(variable == null) then

     true

     false

Gabriel.

Thank you, that did it