mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix bug 101384: NPE in parser
This commit is contained in:
parent
cbd0d0ef66
commit
b5d98c79f4
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ public class CQualifierType implements ICQualifierType, ITypeContainer {
|
|||
if( isRestrict() != qt.isRestrict() ) return false;
|
||||
if( isVolatile() != qt.isVolatile() ) return false;
|
||||
|
||||
return qt.getType().isSameType( getType() );
|
||||
if( type == null )
|
||||
return false;
|
||||
return type.isSameType( qt.getType() );
|
||||
} catch ( DOMException e ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue