adium/adium

Don't create a dictionary with a nil object. Fixes #16400
adium-1.5.7
2013-05-30, Frank Dowsett
bfb34b4ffee0
Don't create a dictionary with a nil object. Fixes #16400
global HandyAdiumScripts
on run
tell application "Adium"
set n to (get name)
try
set name to "dummy"
--never get here
set name to n --reset
error
on error number num --trap all errors
if num is -2700 then error -- if the error is the default error, caused by the 'error' directive, pass it along the chain
--otherwise, the command threw correctly
end try
end tell
end run