Subject Using FBDatabaseMetadata
Author llafranc78
Hello everybody!!

I was trying to run this code:

DatabaseMetaData dmd = connection.getMetaData();

ResultSet rset = dmd.getTables(null,null,null,null); //This should
return all tables in the database...

I get a NullPointerException in dmd.getTables(...) beacause the
pattern parameter is null, and the method
FBDatabaseMetaData.hasNoWildcards(String pattern) doesn't check if
pattern is null. If I write "%" instead of null everything works fine...

I don't exactly know what the specs say, but I'd think that if pattern
is null, than it should be treated as "%"...

What do you think?