From 982415c5063f6c5b230b5a5c1e0ed49846c9eae0 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Fri, 13 Aug 2010 10:19:20 +0000 Subject: [PATCH] minor bug fix: address may be null --- .../src/se/sics/cooja/mspmote/plugins/MspBreakpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspBreakpoint.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspBreakpoint.java index d9fba0d5c..ad2c909db 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspBreakpoint.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/plugins/MspBreakpoint.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: MspBreakpoint.java,v 1.3 2009/06/17 13:06:55 fros4943 Exp $ + * $Id: MspBreakpoint.java,v 1.4 2010/08/13 10:19:20 fros4943 Exp $ */ package se.sics.cooja.mspmote.plugins; @@ -238,7 +238,7 @@ public class MspBreakpoint implements Watchpoint { String desc = ""; if (codeFile != null) { desc += codeFile.getPath() + ":" + lineNr + " (0x" + Integer.toHexString(address.intValue()) + ")"; - } else { + } else if (address != null) { desc += "0x" + Integer.toHexString(address.intValue()); } if (msg != null) {