Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Nov 18, 2024
1 parent 1bc3adc commit aea835d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ default String linkifyRules(Tools5eIndexType type, String text, String rules) {
}
Tools5eIndexType aliasType = Tools5eIndexType.getTypeFromKey(aliasKey);
Tools5eSources rulesSources = Tools5eSources.findSources(aliasKey);
name = rulesSources.getName();
if (rulesSources != null) {
name = rulesSources.getName();
}
if (aliasType != type) {
// we've changed types.. so we need to linkify based on the new type
// typically phb -> xphb changes
Expand Down

0 comments on commit aea835d

Please sign in to comment.