Skip to content

Commit

Permalink
Fix blank prefixes properties case
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmonettas committed Oct 11, 2024
1 parent 3a1ad26 commit b00a0bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@

### Changes
### Bugs fixed

- Fix blank prefixes properties case

## 1.12.0 (06-09-2024)

### New Features

### Changes

- Tracking official 1.12.0
### Bugs fixed

## 1.12.0-rc2 (02-09-2024)
Expand Down
6 changes: 3 additions & 3 deletions src/jvm/clojure/storm/Emitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ public class Emitter {
}

String onlyPrefixesProp = System.getProperty("clojure.storm.instrumentOnlyPrefixes");
if(onlyPrefixesProp != null)
if(onlyPrefixesProp != null && !onlyPrefixesProp.isBlank())
{
String[] prefixes = onlyPrefixesProp.split(",");
String[] prefixes = onlyPrefixesProp.split(",");
for(String p : prefixes)
addInstrumentationOnlyPrefix(p);

}

String skipPrefixesProp = System.getProperty("clojure.storm.instrumentSkipPrefixes");
if(skipPrefixesProp != null)
if(skipPrefixesProp != null && !skipPrefixesProp.isBlank())
{
String[] prefixes = skipPrefixesProp.split(",");
for(String p : prefixes)
Expand Down

0 comments on commit b00a0bf

Please sign in to comment.