Skip to content

Commit

Permalink
IDE-1830 RuntimeException occurs when browse an empty folder as the l…
Browse files Browse the repository at this point in the history
…ocation in new maven plugin project wizard
  • Loading branch information
Lu Li committed Dec 8, 2014
1 parent 28cfee6 commit f785355
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -136,7 +136,7 @@ public static String getMavenParentPomGroupId( NewLiferayPluginProjectOp op, Str
final File parentProjectDir = path.toFile();
final IStatus locationStatus = op.getProjectProvider().content().validateProjectLocation( projectName, path );

if( locationStatus.isOK() && parentProjectDir.exists() )
if( locationStatus.isOK() && parentProjectDir.exists() && parentProjectDir.list().length>0 )
{
List<String> groupId =
op.getProjectProvider().content().getData( "parentGroupId", String.class, parentProjectDir );
Expand Down

0 comments on commit f785355

Please sign in to comment.