diff --git a/ve/velib06.cpp b/ve/velib06.cpp index 4f8ce1ab7..9d2831e9c 100755 --- a/ve/velib06.cpp +++ b/ve/velib06.cpp @@ -257,8 +257,11 @@ TDocumento_mask::TDocumento_mask(const char* td) if (id2pos(id) >= 0) // Alcuni profili NON hanno le note { TBrowse* nb = efield(id).browse(); - nb->set_output_fields(TOSTRING(F_CODNOTE)); - nb->set_output_field_names("CODTAB"); + if (nb != NULL) + { + nb->set_output_fields(TOSTRING(F_CODNOTE)); + nb->set_output_field_names("CODTAB"); + } } else break;