UPDATING_CONSERVATION = true;
- int alWidth = alignment.getWidth();
+ int alWidth = (alignment==null) ? -1 : alignment.getWidth();
if (alWidth < 0)
{
+ updatingConservation = false;
+ UPDATING_CONSERVATION = false;
return;
}
try
{
- int aWidth = alignment.getWidth();
+ int aWidth = alignment==null ? -1 : alignment.getWidth();
if (aWidth < 0)
{
+ UPDATING_CONSENSUS = false;
+ updatingConsensus = false;
return;
}
try
{
- int aWidth = (alignment != null) ? alignment.getWidth() : 0; // null
+ int aWidth = (alignment != null) ? alignment.getWidth() : -1; // null
// pointer
// possibility
// here.
- if (aWidth < 0)
+ if (aWidth <= 0)
{
+ updatingConsensus = false;
+ UPDATING_CONSENSUS = false;
return;
}
AlignViewport.UPDATING_CONSERVATION = true;
- int alWidth = this.alignViewport.alignment.getWidth();
- if (alWidth < 0)
+ int alWidth;
+
+ if (alignViewport==null || alignViewport.alignment==null || (alWidth=alignViewport.alignment.getWidth())< 0)
{
+ this.alignViewport.updatingConservation = false;
+ AlignViewport.UPDATING_CONSERVATION = false;
return;
}
this.alignViewport.conservation = null;
this.alignViewport.quality = null;
-
}
AlignViewport.UPDATING_CONSERVATION = false;