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:
parent
f1cd25ceca
commit
2645d4879d
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue