Skip to content

Commit

Permalink
fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Jul 6, 2024
1 parent aba55f4 commit fdb2cc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions key.format/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
dependencies {
//logging implementation used by the slf4j
implementation 'ch.qos.logback:logback-classic:1.5.6'
implementation 'info.picocli:picocli:4.7.6'
implementation(project(":key.core"))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ public Void visitTaclet(KeYParser.TacletContext ctx) {
}
////////////////////////////////////////////////////////////////////////////////////////////////

static void processHiddenTokens(List<Token> tokens, Output output) {
static void processHiddenTokens(@Nullable List<Token> tokens, Output output) {
if(tokens == null) return;

for (Token t : tokens) {
String text = t.getText();
if (t.getType() == KeYLexer.WS) {
Expand Down

0 comments on commit fdb2cc9

Please sign in to comment.