Skip to content

Commit 06d70f7

Browse files
author
Vitaliy Boyko
committed
Fixed error in console
1 parent 9484af8 commit 06d70f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/com/magento/idea/magento2plugin/linemarker/php/PluginTargetLineMarkerProvider.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ private String getTargetMethodName(Method pluginMethod, String pluginPrefix) {
169169
String pluginMethodName = pluginMethod.getName();
170170
String targetClassMethodName = pluginMethodName.
171171
replace(pluginPrefix, "");
172+
if (targetClassMethodName.isEmpty()) {
173+
return null;
174+
}
172175
char firstCharOfTargetName = targetClassMethodName.charAt(0);
173176
int charType = Character.getType(firstCharOfTargetName);
174177
if (charType == Character.LOWERCASE_LETTER) {

0 commit comments

Comments
 (0)