@@ -785,36 +785,50 @@ public void autoResolveConcluded(AutoResolveConcludedEvent autoResolveConcludedE
785
785
true ,
786
786
tracker );
787
787
resolveDialog .setVisible (true );
788
- // TODO remove these safeties as they're shown to be unnecessary
788
+ // TODO remove these safeties once the investigation is concluded -Illiani
789
789
if (resolveDialog == null ) {
790
- throw new IllegalStateException ("resolveDialog is null" );
790
+ logger .errorDialog (new IllegalStateException (),
791
+ "resolveDialog is null please report this as a bug" ,
792
+ "UNDER ACTIVE INVESTIGATION" );
791
793
}
792
794
if (resolveDialog .wasAborted ()) {
793
- // TODO remove these safeties as they're shown to be unnecessary
795
+ // TODO remove these safeties once the investigation is concluded -Illiani
794
796
Map <UUID , ?> peopleStatus = tracker .getPeopleStatus ();
795
797
if (peopleStatus == null ) {
796
- throw new IllegalStateException ("People status map in tracker is null" );
798
+ logger .errorDialog (new IllegalStateException (),
799
+ "People status map in tracker is null please report this as a bug" ,
800
+ "UNDER ACTIVE INVESTIGATION" );
797
801
}
798
802
799
803
for (UUID personId : tracker .getPeopleStatus ().keySet ()) {
800
- // TODO remove these safeties as they're shown to be unnecessary
804
+ // TODO remove these safeties once the investigation is concluded -Illiani
801
805
if (getCampaign () == null ) {
802
- throw new IllegalStateException ("Campaign instance is null" );
806
+ logger .errorDialog (new IllegalStateException (),
807
+ "Campaign instance is null please report this as a bug" ,
808
+ "UNDER ACTIVE INVESTIGATION" );
803
809
}
804
810
805
811
Person person = getCampaign ().getPerson (personId );
806
812
807
813
if (person == null ) {
808
- throw new IllegalArgumentException ("Person with ID " +
809
- personId +
810
- " does not exist in the campaign" );
814
+ // TODO remove these safeties once the investigation is concluded -Illiani
815
+ logger .errorDialog (new IllegalStateException (),
816
+ "Person with ID " +
817
+ personId +
818
+ " does not exist in the campaign" +
819
+ " please report this" +
820
+ " as a bug" ,
821
+ "UNDER ACTIVE INVESTIGATION" );
811
822
}
812
823
813
824
Integer priorHits = person .getHitsPrior ();
814
- // TODO remove these safeties as they're shown to be unnecessary
825
+ // TODO remove these safeties once the investigation is concluded -Illiani
815
826
if (priorHits == null ) {
816
- throw new IllegalStateException ("Person's prior hits are not set for person " +
817
- person .getFullName ());
827
+ logger .errorDialog (new IllegalStateException (),
828
+ "Person's prior hits are not set for person " +
829
+ person .getFullName () +
830
+ " please report this as a bug" ,
831
+ "UNDER ACTIVE INVESTIGATION" );
818
832
}
819
833
person .setHits (priorHits );
820
834
}
0 commit comments