bugfix: markdown would fail if plantuml jar is not configured
This commit is contained in:
@@ -72,7 +72,7 @@ public class Util {
|
|||||||
public static String markdown(String source){
|
public static String markdown(String source){
|
||||||
if (source == null) return source;
|
if (source == null) return source;
|
||||||
try {
|
try {
|
||||||
if (plantumlJar.exists()) {
|
if (plantumlJar != null && plantumlJar.exists()) {
|
||||||
var matcher = UML_PATTERN.matcher(source);
|
var matcher = UML_PATTERN.matcher(source);
|
||||||
if (matcher.find()) {
|
if (matcher.find()) {
|
||||||
var uml = matcher.group(0).trim();
|
var uml = matcher.group(0).trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user