Jump to content
UBot Underground

Watch out for this programming error


Recommended Posts

Hey all,

 

Make sure you watch out for errors when using the NAV command. If you have any 'hidden' spaces in your url that you are using in the nav command, it will throw the error "Object reference not set to an instance of an object".

 

So, if you encounter this, check for spaces!

 

Cheers,

 

Frank

Link to post
Share on other sites
  • 6 months later...

Taking that a step further, if you are processing URLs not prepared by you then you could process the urls with a $replace command and check for the Spaces first and replace with nothing to remove them.

 

Thanks for the heads up Frank!

Link to post
Share on other sites
  • 3 years later...

I reckon by default Ubot should remove the spaces. maybe someone suggest this as a new feature for next month as I'm too tired to make the suggestion now.

 

This thread is almost 4 years old :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...