diff options
-rw-r--r-- | src/tbf.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index f3c5e69e..ac099cf0 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -914,6 +914,9 @@ const char *tbf_name(gprs_rlcmac_tbf *tbf) const char *gprs_rlcmac_tbf::name() const { + if (this == NULL) + return "(no TBF)"; + snprintf(m_name_buf, sizeof(m_name_buf) - 1, "TBF(TFI=%d TLLI=0x%08x DIR=%s STATE=%s)", m_tfi, tlli(), |