mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
NPE in resource lookup, bug 261483.
This commit is contained in:
parent
f0f568f2d5
commit
3feca4f34f
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,10 @@ abstract class LocationAdapter<T> {
|
|||
public static final LocationAdapter<IPath> PATH = new LocationAdapter<IPath>() {
|
||||
@Override
|
||||
public String extractName(IPath location) {
|
||||
return location.lastSegment();
|
||||
String name = location.lastSegment();
|
||||
if (name != null)
|
||||
return name;
|
||||
return location.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue