mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 08:45:44 +02:00
Catch null pointer
This commit is contained in:
parent
ed9a85d9b7
commit
b49ff9c101
1 changed files with 3 additions and 0 deletions
|
@ -219,6 +219,9 @@ public class SourceManager extends SessionObject implements ICDISourceManager {
|
|||
|
||||
|
||||
public Type getType(ICDITarget target, String name) throws CDIException {
|
||||
if (name == null) {
|
||||
name = new String();
|
||||
}
|
||||
String typename = name.trim();
|
||||
|
||||
// Check the derived types and agregate types
|
||||
|
|
Loading…
Add table
Reference in a new issue