Uniandes-ISIS2603-backup / s4_CarrosUsados

MIT License
1 stars 0 forks source link

dtos/ArticuloDTO.java - Check constructor from Entity implementation in DTO. #121

Open camendoza94 opened 6 years ago

camendoza94 commented 6 years ago

Issue: Check constructor from Entity implementation in DTO.

Found on file: dtos/ArticuloDTO.java

On commit: 1b6f9d5c8d36f7ce534df4f65e73123600f8e9f1

Go to the Knowledge Base to find more info about this violation

Lucariomon commented 5 years ago

se agrego control al constructor para evitar crear null if(articulo.getAutomovil() != null) this.automovil = new AutomovilDTO(articulo.getAutomovil()); if(articulo.getFactura() != null) this.factura = new FacturaDTO(articulo.getFactura());