Buggy code:
@ ConsoleClass ( name = "project" , defaultAction = "help" , description = "Project<seq2seq4repair_space>management" ) public class ProjectManager { public static final String BASE_SOURCE_FOLDER = "//src//main//java//" ; public static final String BASE_DOMAIN_FOLDER = "domain" ; public static final String BASE_IOC_FOLDER = ( ProjectManager . BASE_SOURCE_FOLDER ) + "META-INF//components" ; public static final String BASE_IOC_FILE = "applicationContext.xml" ; public static final String PROJECT_PACKAGE = "package" ; public static final String PROJECT_NAME = "name" ; public static final String PROJECT_SOURCE = "src" ; public static final String PROJECT_IOC_PATH = "ioc-path" ; public static final String PROJECT_IOC_FILE = "ioc-file" ; public static final String PROJECT_FILE_NAME = "roma-project.xml" ; private static final Log log = LogFactory . getLog ( ProjectManager . class ) ; private Properties properties = new Properties ( ) ; @ ConsoleAction ( description = "Create<seq2seq4repair_space>a<seq2seq4repair_space>new<seq2seq4repair_space>project" ) public void create ( @ ConsoleParameter ( name = "type" , description = "the<seq2seq4repair_space>type<seq2seq4repair_space>of<seq2seq4repair_space>project<seq2seq4repair_space>example:<seq2seq4repair_space>web,webready,console" ) String type , @ ConsoleParameter ( name = "name" , description = "the<seq2seq4repair_space>name<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>project" ) String name , @ ConsoleParameter ( name = "package" , description = "the<seq2seq4repair_space>package<seq2seq4repair_space>of<seq2seq4repair_space>new<seq2seq4repair_space>project" ) String pack , @ ConsoleParameter ( name = "path" , description = "<seq2seq4repair_space>the<seq2seq4repair_space>folder<seq2seq4repair_space>where<seq2seq4repair_space>the<seq2seq4repair_space>was<seq2seq4repair_space>created." ) String path ) { properties . put ( ProjectManager . PROJECT_PACKAGE , pack ) ; properties . put ( ProjectManager . PROJECT_NAME , name ) ; properties . put ( ProjectManager . PROJECT_SOURCE , ProjectManager . BASE_SOURCE_FOLDER ) ; properties . put ( ProjectManager . PROJECT_IOC_PATH , ProjectManager . BASE_IOC_FOLDER ) ; properties . put ( ProjectManager . PROJECT_IOC_FILE , ProjectManager . BASE_IOC_FILE ) ; <START_BUG> if ( ( path == null ) || ( path == "" ) ) <END_BUG> path = "." ; File workingDir = new File ( path ) ; if ( ! ( workingDir . exists ( ) ) ) { ProjectManager . log . error ( ( ( "Working<seq2seq4repair_space>path:" + path ) + "<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ) ; return ; } File projectDir = new File ( ( ( ( workingDir . getAbsolutePath ( ) ) + "//" ) + name ) ) ; if ( projectDir . exists ( ) ) { ProjectManager . log . error ( ( ( "Project<seq2seq4repair_space>directory:" + name ) + "<seq2seq4repair_space>already<seq2seq4repair_space>exist" ) ) ; return ; } ProjectTypes projectTypes = Roma . component ( ProjectTypes . class ) ; List < ModuleData > modules = null ; if ( projectTypes != null ) { modules = projectTypes . getModulesOfProject ( type ) ; } if ( modules == null ) { ProjectManager . log . error ( "Project<seq2seq4repair_space>Type<seq2seq4repair_space>selected<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ; return ; } projectDir . mkdir ( ) ; try { properties . storeToXML ( new FileOutputStream ( ( ( ( projectDir . getAbsolutePath ( ) ) + "//" ) + ( ProjectManager . PROJECT_FILE_NAME ) ) ) , "" ) ; } catch ( Exception e ) { ProjectManager . log . error ( ( ( ( "Error<seq2seq4repair_space>on<seq2seq4repair_space>write<seq2seq4repair_space>file:" + ( projectDir . getAbsolutePath ( ) ) ) + "//" ) + ( ProjectManager . PROJECT_FILE_NAME ) ) , e ) ; return ; } new File ( ( ( ( ( ( projectDir . getAbsolutePath ( ) ) + ( ProjectManager . BASE_SOURCE_FOLDER ) ) + ( pack . replace ( '.' , '//' ) ) ) + "//" ) + ( ProjectManager . BASE_DOMAIN_FOLDER ) ) ) . mkdirs ( ) ; ModuleManager m = new ModuleManager ( ) ; m . initProjectDescriptor ( projectDir , name , pack ) ; for ( ModuleData module : modules ) { m . add ( projectDir . getAbsolutePath ( ) , module , properties ) ; } File projectInstall = new File ( ( ( ( PathHelper . getWizardPath ( ) ) + "project-install//" ) + type ) ) ; if ( projectInstall . exists ( ) ) { ModuleManager . install ( projectInstall , projectDir , properties ) ; } } @ ConsoleAction ( description = "Create<seq2seq4repair_space>a<seq2seq4repair_space>crud<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>class<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>project" ) public void crud ( @ ConsoleParameter ( name = "class" , description = "domain<seq2seq4repair_space>class<seq2seq4repair_space>that<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>generate<seq2seq4repair_space>the<seq2seq4repair_space>crud<seq2seq4repair_space>" ) String claz , @ ConsoleParameter ( name = "project-folder" , description = "the<seq2seq4repair_space>path<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>project" ) String projectfolder ) { } @ ConsoleAction ( description = "Display<seq2seq4repair_space>the<seq2seq4repair_space>project<seq2seq4repair_space>management<seq2seq4repair_space>help" ) public void help ( @ ConsoleParameter ( name = "commands..." ) String ... args ) { } }

Fix:
if ( ( path == null ) || ( "" . equals ( path ) ) )