git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nullpointer bug fix on consensus thread
[jalview.git]
/
src
/
jalview
/
gui
/
AlignViewport.java
diff --git
a/src/jalview/gui/AlignViewport.java
b/src/jalview/gui/AlignViewport.java
index
afdfd69
..
a2d5ec2
100755
(executable)
--- a/
src/jalview/gui/AlignViewport.java
+++ b/
src/jalview/gui/AlignViewport.java
@@
-513,7
+513,7
@@
public class AlignViewport
try
{
try
{
- int aWidth = alignment.getWidth();
+ int aWidth = (alignment!=null) ? alignment.getWidth() : 0; // null pointer possibility here.
if(aWidth<0)
{
return;
if(aWidth<0)
{
return;