Skip to content

Commit

Permalink
Fixed "No Java package for class [B" exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 20, 2017
1 parent 42f2959 commit 9a892a6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1130,7 +1130,7 @@ public Collection<SchemaDescription> getSchemaDescriptions() {
public PrismSchema findSchemaByCompileTimeClass(@NotNull Class<?> compileTimeClass) {
Package compileTimePackage = compileTimeClass.getPackage();
if (compileTimePackage == null) {
throw new IllegalStateException("No Java package for " + compileTimeClass);
return null; // e.g. for arrays
}
for (SchemaDescription desc: schemaDescriptions) {
if (compileTimePackage.equals(desc.getCompileTimeClassesPackage())) {
Expand Down

0 comments on commit 9a892a6

Please sign in to comment.