mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 00:15:01 -04:00
fixes a null pointer exception
This commit is contained in:
parent
573a22a412
commit
ba7df6c1d7
@ -203,6 +203,8 @@ public class HDLNet implements Printable, HasName {
|
|||||||
* @return true if this is a clock net
|
* @return true if this is a clock net
|
||||||
*/
|
*/
|
||||||
public boolean isClock() {
|
public boolean isClock() {
|
||||||
|
if (output == null)
|
||||||
|
return false;
|
||||||
return output.isClock();
|
return output.isClock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user