Jump to content

Object is Null

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
I keep trying to reference an empty object. Meaning I created the, hmm, the variable


string myArray[];


and later on I use the split function to create the object and fill it. If the split function doesn't happen though, the array never gets created and I get an illegal reference to it. How can I detect this??

#2
Ronin

Ronin

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
if (!object) {}

#3
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
That doesn't seem to work on a String Array though. That is my problem.