Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois committed Sep 17, 2024
1 parent 462f404 commit 7c0f825
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.sql.Statement;

@Component
public class V3_34__Add_column_elevation_required_payload extends BaseJavaMigration {
public class V3_37__Add_column_elevation_required_payload extends BaseJavaMigration {

@Override
public void migrate(final Context context) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.hypersistence.utils.hibernate.type.json.JsonType;
import io.openbas.annotation.Queryable;
import io.openbas.database.audit.ModelBaseListener;
import io.openbas.database.model.Endpoint.PLATFORM_TYPE;
import io.openbas.helper.MonoIdDeserializer;
import io.openbas.helper.MultiIdListDeserializer;
import io.openbas.helper.MultiIdSetDeserializer;
Expand Down Expand Up @@ -72,7 +73,7 @@ public enum PAYLOAD_STATUS {
@Type(StringArrayType.class)
@Column(name = "payload_platforms", columnDefinition = "text[]")
@JsonProperty("payload_platforms")
private Endpoint.PLATFORM_TYPE[] platforms = new Endpoint.PLATFORM_TYPE[0];
private PLATFORM_TYPE[] platforms = new PLATFORM_TYPE[0];

@Setter
@ManyToMany(fetch = FetchType.EAGER)
Expand Down Expand Up @@ -164,7 +165,7 @@ public enum PAYLOAD_STATUS {

@JsonProperty("payload_collector_type")
private String getCollectorType() {
return null != collector ? this.collector.getType() : null;
return this.collector != null ? this.collector.getType() : null;
}

@Override
Expand Down

0 comments on commit 7c0f825

Please sign in to comment.