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
JAL-715 - allow rest service attributes to be exported and imported as a | separated...
[jalview.git]
/
src
/
MCview
/
PDBfile.java
diff --git
a/src/MCview/PDBfile.java
b/src/MCview/PDBfile.java
index
c55a519
..
30f7e42
100755
(executable)
--- a/
src/MCview/PDBfile.java
+++ b/
src/MCview/PDBfile.java
@@
-56,18
+56,18
@@
public class PDBfile extends jalview.io.AlignFile
// TODO set the filename sensibly - try using data source name.
id = safeName(getDataName());
// TODO set the filename sensibly - try using data source name.
id = safeName(getDataName());
- try
- {
chains = new Vector();
PDBChain tmpchain;
chains = new Vector();
PDBChain tmpchain;
- String line;
+ String line=null;
boolean modelFlag = false;
boolean terFlag = false;
String lastID = "";
int index = 0;
String atomnam = null;
boolean modelFlag = false;
boolean terFlag = false;
String lastID = "";
int index = 0;
String atomnam = null;
+ try
+ {
while ((line = nextLine()) != null)
{
if (line.indexOf("HEADER") == 0)
while ((line = nextLine()) != null)
{
if (line.indexOf("HEADER") == 0)
@@
-185,6
+185,13
@@
public class PDBfile extends jalview.io.AlignFile
System.out.println("OUT OF MEMORY LOADING PDB FILE");
throw new IOException("Out of memory loading PDB File");
}
System.out.println("OUT OF MEMORY LOADING PDB FILE");
throw new IOException("Out of memory loading PDB File");
}
+ catch (NumberFormatException ex)
+ {
+ if (line!=null) {
+ System.err.println("Couldn't read number from line:");
+ System.err.println(line);
+ }
+ }
}
/**
}
/**