minor bug fix: address may be null

This commit is contained in:
fros4943 2010-08-13 10:19:20 +00:00
parent 3deb4408df
commit 982415c506

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * 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; package se.sics.cooja.mspmote.plugins;
@ -238,7 +238,7 @@ public class MspBreakpoint implements Watchpoint {
String desc = ""; String desc = "";
if (codeFile != null) { if (codeFile != null) {
desc += codeFile.getPath() + ":" + lineNr + " (0x" + Integer.toHexString(address.intValue()) + ")"; desc += codeFile.getPath() + ":" + lineNr + " (0x" + Integer.toHexString(address.intValue()) + ")";
} else { } else if (address != null) {
desc += "0x" + Integer.toHexString(address.intValue()); desc += "0x" + Integer.toHexString(address.intValue());
} }
if (msg != null) { if (msg != null) {