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() {
263263 * @return String
264264 */
265265 private String suggestCronjobName (final String cronjobClassname ) {
266+ if (moduleName == null ) {
267+ return "" ;
268+ }
269+
266270 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" ));
268272 }
269273
270274 final String cronjobClassnameToSnakeCase = this .camelCaseToSnakeCase .convert (
271275 cronjobClassname
272276 );
273277
274- return this . moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ))
278+ return moduleName .toLowerCase (new java .util .Locale ("en" ,"EN" ))
275279 + "_"
276280 + cronjobClassnameToSnakeCase ;
277281 }
You can’t perform that action at this time.
0 commit comments