File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/com/magento/idea/magento2plugin/actions/generation/dialog Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -263,15 +263,19 @@ private void createUIComponents() {
263
263
* @return String
264
264
*/
265
265
private String suggestCronjobName (final String cronjobClassname ) {
266
+ if (moduleName == null ) {
267
+ return "" ;
268
+ }
269
+
266
270
if (cronjobClassname == null || cronjobClassname .isEmpty ()) {
267
- return this . moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ));
271
+ return moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ));
268
272
}
269
273
270
274
final String cronjobClassnameToSnakeCase = this .camelCaseToSnakeCase .convert (
271
275
cronjobClassname
272
276
);
273
277
274
- return this . moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ))
278
+ return moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ))
275
279
+ "_"
276
280
+ cronjobClassnameToSnakeCase ;
277
281
}
You can’t perform that action at this time.
0 commit comments