mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
Fixed NPE
This commit is contained in:
parent
f6a7abcb01
commit
98e489cbd6
@ -724,7 +724,7 @@ public class JSweetContext extends Context {
|
||||
* @see Util#isSourceElement(Element)
|
||||
*/
|
||||
public boolean isExcludedSourceElement(Element element) {
|
||||
if (element == null || element instanceof PackageSymbol) {
|
||||
if (element == null || element instanceof PackageSymbol || excludedSourcePaths == null) {
|
||||
return false;
|
||||
}
|
||||
if (element instanceof ClassSymbol) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user