vietj / vertx-codegen-cli

A cli for Vert.x Codegen
5 stars 3 forks source link

fixed nullpointer exception due to getParentFile #2

Closed oneto018 closed 8 years ago

oneto018 commented 8 years ago

When new File object is constructed , if it has relative path without any perfix , like when running codegen command directly in same directory , getParentFile() method retrurns null. But when we first get getAbsoluteFile() , It returns same file with absolute path. Then getting getParentFile() seems working fiine. http://docs.oracle.com/javase/7/docs/api/java/io/File.html#getParentFile()

vietj commented 8 years ago

thanks