Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / ConditionInputPort.hxx
index 468bb5cb9d3d7e1e91bcb9e80c0c5d0657cb5cc2..92910722e984f67742a7e44b4cbb525d469fcbaa 100644 (file)
@@ -23,13 +23,13 @@ namespace YACS
       bool isLinkedOutOfScope() const;
       void edNotifyReferencedBy(OutPort *fromPort);
       void edNotifyDereferencedBy(OutPort *fromPort);
-      void *get() const throw(Exception);
+      void *get() const;
       void put(const void *data) throw(ConversionException);
       std::string dump();
     protected:
       Any *_value;
     public:
-      bool getValue() const { return _value->getBoolValue(); }
+      bool getValue() const { return (_value ? _value->getBoolValue() : false); }
     };
   }
 }