Description
The getOrientation() method in TabbedDemo.java does not check if currentLayout is null before calling currentLayout.getOrientation(), which can result in a NullPointerException when the method is called before any content is loaded.
Location
File: src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java
Method: getOrientation() (around lines 346-348)
Context
Other similar methods like toggleSourcePosition() and setOrientation() include null checks for currentLayout, but getOrientation() does not follow this pattern.
References
Description
The
getOrientation()method inTabbedDemo.javadoes not check ifcurrentLayoutis null before callingcurrentLayout.getOrientation(), which can result in aNullPointerExceptionwhen the method is called before any content is loaded.Location
File:
src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.javaMethod:
getOrientation()(around lines 346-348)Context
Other similar methods like
toggleSourcePosition()andsetOrientation()include null checks forcurrentLayout, butgetOrientation()does not follow this pattern.References