Skip to content

Commit

Permalink
fix null pointer (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Nov 19, 2023
1 parent 6fe9cd2 commit 249e4ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/java-audit/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default class extends BaseApplicationGenerator {
get [BaseApplicationGenerator.CONFIGURING_EACH_ENTITY]() {
return this.asConfiguringEachEntityTaskGroup({
async configureEntity({ entityName, entityConfig }) {
const { auditedEntities = [] } = this.options;
entityConfig.enableAudit = auditedEntities.includes(entityName) || entityConfig.enableAudit;
const { auditedEntities } = this.options;
entityConfig.enableAudit = auditedEntities?.includes(entityName) || entityConfig.enableAudit;
if (!entityConfig.enableAudit) return;

const fieldNames = entityConfig.fields.map(f => f.fieldName);
Expand Down
1 change: 1 addition & 0 deletions generators/server/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import command from './command.js';

export default class extends BaseApplicationGenerator {
initialRun;
auditedEntities;

constructor(args, opts, features) {
super(args, opts, { ...features, sbsBlueprint: true });
Expand Down

0 comments on commit 249e4ef

Please sign in to comment.