Skip to content
Snippets Groups Projects
Commit 3197bc33 authored by bkii's avatar bkii
Browse files

Try Catch Sourounded DOS-var

parent 54b08bfc
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ import java.util.*;
import edu.nps.moves.dis7.*;
import edu.nps.moves.dis7.enumerations.*;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* This is an example that sends many/most types of PDUs. Useful for testing standards
......@@ -405,7 +407,11 @@ public class BrennenstuhlPduSender
byte[] buffer;
Pdu aPdu = generatedPdusList.get(idx);
aPdu.marshal(dos);
try {
aPdu.marshal(dos);
} catch (Exception ex) {
Logger.getLogger(BrennenstuhlPduSender.class.getName()).log(Level.SEVERE, null, ex);
}
buffer = baos.toByteArray();
DatagramPacket packet = new DatagramPacket(buffer, buffer.length, localMulticastAddress, DEFAULT_MULTICAST_PORT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment