A longer version (in Python) might be:
nodeIds = Framework.getDataAsList(key)
if not nodeIds:
nodeIds = []
Which might translate into Java almost identically:
Vector<foo> nodeIds = Framework.getDataAsList(key);
if(nodeIds == null) {
nodeIds = new Vector<foo>();
}
(my Java is pretty rusty though ;)
Certain values in a 'not' expression evaluate to False. You can try this yourself from the interactive Python command line:
>>> not 0
... True
>>> not 1
... False
>>> not []
... True
>>> not ()
... True
>>> not True
... False
>>> not False
... True
Hope this helps.