mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 19:35:36 +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>() {
|
public static final LocationAdapter<IPath> PATH = new LocationAdapter<IPath>() {
|
||||||
@Override
|
@Override
|
||||||
public String extractName(IPath location) {
|
public String extractName(IPath location) {
|
||||||
return location.lastSegment();
|
String name = location.lastSegment();
|
||||||
|
if (name != null)
|
||||||
|
return name;
|
||||||
|
return location.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue