From Jan Schumacher RubyRoot crashes when trying to emulate C-like casting if the argument class  does not exist. Since the check for existence of the class checks the return  type of new TClass(...), it is always true. Attached is a patch that changes  this to TClass::GetClass, which returns 0 in case of failure. Also, the result  of failure is mitigated from an abort to an exception.
From Jan Schumacher
RubyRoot crashes when trying to emulate C-like casting if the argument class 
does not exist. Since the check for existence of the class checks the return 
type of new TClass(...), it is always true. Attached is a patch that changes 
this to TClass::GetClass, which returns 0 in case of failure. Also, the result 
of failure is mitigated from an abort to an exception.

see: https://savannah.cern.ch/bugs/?32309


git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@21470 27541ba8-7e3a-0410-8455-c3a389f83636

bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT