This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit 2020a5f0cb1e8e858f5366539c2a2dc8adeefea1
Author: Christopher Collins <ccoll...@apache.org>
AuthorDate: Wed Aug 9 14:18:37 2017 -0700

    newtmgr - Fix nil pointer deference.
---
 nmxact/nmble/ble_sesn.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nmxact/nmble/ble_sesn.go b/nmxact/nmble/ble_sesn.go
index 00aef91..a35cebe 100644
--- a/nmxact/nmble/ble_sesn.go
+++ b/nmxact/nmble/ble_sesn.go
@@ -111,8 +111,8 @@ func (s *BleSesn) disconnectListen() {
 
 func (s *BleSesn) getChr(chrId *BleChrId) (*Characteristic, error) {
        if chrId == nil {
-               return nil, fmt.Errorf("BLE session not configured with 
required "+
-                       "characteristic: %s", *chrId)
+               return nil, fmt.Errorf("BLE session not configured with 
required " +
+                       "characteristic")
        }
 
        chr := s.conn.Profile().FindChrByUuid(*chrId)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <commits@mynewt.apache.org>.

Reply via email to