diff --git a/src/Commands/Base/PipeBinds/TaxonomyTermPipeBind.cs b/src/Commands/Base/PipeBinds/TaxonomyTermPipeBind.cs index d43846c19..77183c492 100644 --- a/src/Commands/Base/PipeBinds/TaxonomyTermPipeBind.cs +++ b/src/Commands/Base/PipeBinds/TaxonomyTermPipeBind.cs @@ -92,6 +92,10 @@ public Term GetTerm(ClientContext clientContext, TermStore termStore, TermSet te { throw new PSArgumentException("Not enough parameters specified to succesfully find the term"); } + if(null == term) + { + throw new PSArgumentException("The specified term does not exist"); + } if (expressions != null) { clientContext.Load(term, expressions);