Fixed static analysis issues (transformations) (#3276)
[platform/upstream/dldt.git] / inference-engine / src / transformations / src / transformations / op_conversions / log_softmax_decomposition.cpp
index 12c4d25..f89c4c2 100644 (file)
@@ -20,7 +20,7 @@ ngraph::pass::LogSoftmaxDecomposition::LogSoftmaxDecomposition() {
         auto& pattern_to_output = m.get_pattern_value_map();
         auto log_softmax_node = std::dynamic_pointer_cast<ngraph::opset5::LogSoftmax>(pattern_to_output.at(log_softmax).get_node_shared_ptr());
 
-        if (m_transformation_callback(log_softmax_node)) {
+        if (log_softmax_node == nullptr || m_transformation_callback(log_softmax_node)) {
             return false;
         }