Skip to content

Commit

Permalink
fix(qsync): NPE in QuerySyncNotificationProvider (#7032)
Browse files Browse the repository at this point in the history
* fix(qsync): NPE in QuerySyncNotificationProvider

buildDepsHelper.getSourceFileMissingDepsCount will check if toBuild is really a SOURCE one

* Formatting in QuerySyncNotificationProvider.java
  • Loading branch information
Tomasz Pasternak authored Nov 21, 2024
1 parent bdc69ce commit 6773322
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public class QuerySyncNotificationProvider implements EditorNotificationProvider
if (toBuild.isEmpty()) {
return null;
}
if (toBuild.type() != TargetsToBuild.Type.SOURCE_FILE) {
return null;
}

int missing = buildDepsHelper.getSourceFileMissingDepsCount(toBuild);
String notificationText;
Expand Down

0 comments on commit 6773322

Please sign in to comment.