From 233135da81842d99ef5ee1e32e4eaff266e685b6 Mon Sep 17 00:00:00 2001 From: Ivana Mitrovic Date: Thu, 9 May 2024 08:46:13 -0700 Subject: [PATCH] mem-ruby: Fix NullPointerException in RubyRequest (#1118) This PR includes a check for `m_pkt` being null and appropriately handles that case. This issue was causing the Daily tests to fail. Change-Id: I87142ca14ca4ab3d8306153a1cf34c2629a119ba --- src/mem/ruby/slicc_interface/RubyRequest.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mem/ruby/slicc_interface/RubyRequest.hh b/src/mem/ruby/slicc_interface/RubyRequest.hh index 5fc0002678..a258a18f9a 100644 --- a/src/mem/ruby/slicc_interface/RubyRequest.hh +++ b/src/mem/ruby/slicc_interface/RubyRequest.hh @@ -103,7 +103,7 @@ class RubyRequest : public Message m_htmTransactionUid(0), m_isTlbi(false), m_tlbiTransactionUid(0), - m_isSecure(m_pkt->req->isSecure()) + m_isSecure(m_pkt ? m_pkt->req->isSecure() : false) { m_LineAddress = makeLineAddress(m_PhysicalAddress); if (_pkt) {