Linux: NullPointerException when creating new eaf file (no waveform shown)
Up one level
Linux: NullPointerException when creating new eaf file (no waveform shown)
When using ELAN 3.7.2 under Linux there is an issue when creating a new eaf file and subsequently adding a wav file.
Java reports a NullPointerException at
src/java/mpi/eudico/client/annotator/player/JMFMediaPlayer.java
in method getAspectRatio()
As a consequence, no waveform shows up.
Until the next release one can fix this by changing the following in the above mentioned method and file (source release of ELAN):
original:
[...]
public float getAspectRatio() {
if (player == null) {
return 0;
}
[...]
should be changed to:
[...]
public float getAspectRatio() {
if (player == null || getVisualComponent() == null) {
return 0;
}
[...]
Best regards,
Martin
Re: Linux: NullPointerException when creating new eaf file (no waveform shown)
Thanks a lot, this fix will be in the next release.
-Han