0027432: Null Handle Access When Creating AIS_Trihedron
[occt.git] / src / Units / Units_Sentence.cxx
index bde82d5..3969108 100644 (file)
@@ -60,7 +60,8 @@ Units_Sentence::Units_Sentence(const Handle(Units_Lexicon)& alexicon,
   
   thesequenceoftokens = new Units_TokensSequence();
   Handle(Units_TokensSequence) lstlexicon=alexicon->Sequence();
-  Units_NoSuchType_Raise_if(lstlexicon.IsNull(),"BAD LEXICON descriptor");
+  if(lstlexicon.IsNull())
+    Units_NoSuchType::Raise("BAD LEXICON descriptor");
   limchain=strlen(astring);
   i=0;