Changeset 20600

Show
Ignore:
Timestamp:
07/27/07 12:07:17 (1 year ago)
Author:
aronb
Message:

Assert earlier if base type is not known.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/gadgeteer/plugins/RIMPlugin/RIMPlugin.cpp

    r20326 r20600  
    291291{ 
    292292   vprDEBUG(gadgetDBG_RIM,vprDBG_CONFIG_LVL) 
    293    << clrOutBOLD(clrMAGENTA, "[RemoteInputManager]") 
    294    << "Creating Virtual Device: " << name << std::endl << vprDEBUG_FLUSH; 
     293      << clrOutBOLD(clrMAGENTA, "[RemoteInputManager]") 
     294      << "Creating Virtual Device: " << name << std::endl << vprDEBUG_FLUSH; 
    295295 
    296296   gadget::InputPtr input_device = gadget::InputPtr(gadget::BaseTypeFactory::instance()->createObject(device_base_type)); 
     297   vprASSERT(NULL != input_dev.get() && "BaseTypeFactory returned a NULL input device."); 
    297298 
    298299   // Create a new VirtualDevice.