We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0f172 commit dc98a79Copy full SHA for dc98a79
spring-websocket/src/main/java/org/springframework/web/socket/adapter/jetty/JettyWebSocketSession.java
@@ -183,13 +183,7 @@ public void initializeNativeSession(Session session) {
183
this.extensions = getExtensions(session);
184
185
if (this.user == null) {
186
- try {
187
- this.user = session.getUpgradeRequest().getUserPrincipal();
188
- }
189
- catch (NullPointerException ex) {
190
- // Necessary until https://github.com/eclipse/jetty.project/issues/10498 is resolved
191
- logger.error("Failure from UpgradeRequest while getting Principal", ex);
192
+ this.user = session.getUpgradeRequest().getUserPrincipal();
193
}
194
195
0 commit comments