]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
#1372
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index 6de30402b985bce8502bfbb80e2fdc5cb7e3a249..dc5545af9ba4652599f22fd17aa1b2209c125b68 100644 (file)
@@ -252,7 +252,9 @@ int wxVtkSceneManager::createGBlackBox(int x, int y, std::string packageName,
        BlackBoxDescriptor::Pointer descriptor =
                        GObjectsMVCFactory::getInstance()->getBlackBoxDescriptor(
                                        packageName, boxType);
-
+       if (descriptor == NULL){
+                       printf("SCP: ERROR in wxVtkSceneManager::createGBlackBox, box %s probably does not exist.\n",  boxType.c_str());
+               }
        //Prepares the initial model
        //The coordinates obtained are the following. Top-Left:x=0,y=0 Bottom-Right:x=width,y=height
 
@@ -2171,11 +2173,17 @@ int wxVtkSceneManager::configGConnetion(std::string nameStartBox,
        boxModel = findGBox(nameStartBox);
        if (boxModel != NULL) {
                startP = boxModel->getOutputPort(nameStartPort);
+               if(startP == NULL){
+                       printf("SCP: ERROR in wxVtkSceneManager::configGConnetion start port %s is null. Port name is probably wrong.\n", nameStartPort.c_str());
+               }
        }
 
        boxModel = findGBox(nameEndBox);
        if (boxModel != NULL) {
                endP = boxModel->getInputPort(nameEndPort);
+               if(endP == NULL){
+                       printf("SCP: ERROR in wxVtkSceneManager::configGConnetion end port %s is null. Port name is probably wrong\n", nameStartPort.c_str(), nameEndPort.c_str());
+               }
        }
 
        //ups2