1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Fix for 183578: NPE creating an address breakpoint in the Disassembly view

This commit is contained in:
Anton Leherbauer 2007-05-24 09:04:00 +00:00
parent f1cd25ceca
commit 2645d4879d

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others.
* Copyright (c) 2000, 2007 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -7,6 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.debug.mi.core.cdi;
@ -940,7 +941,9 @@ public class BreakpointManager extends Manager {
if (bkpt.getLocator() != null) {
ICDILocator locator = bkpt.getLocator();
String file = locator.getFile();
file = new File(file).getName();
if (file != null) {
file = new File(file).getName();
}
String function = locator.getFunction();
int no = locator.getLineNumber();
if (bkpt instanceof LineBreakpoint) {