Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
1 replies
44 views

I am using the com.microsoft.graph.serviceclient.GraphServiceClient class to retrieve users: UserCollectionResponse userCollectionResponse = graphClient.users().get(conf -> { conf....
fascynacja's user avatar
  • 3,186
2 votes
4 answers
309 views

// File: Employee.java public class Employee implements Comparable { public Integer salary; public int compareTo(Object e) { Employee other = (Employee) e; return Integer....
0xChaitanya's user avatar
0 votes
0 answers
37 views

I'm using the workmanager Flutter plugin (workmanager: ^0.8.0) to perform background tasks, and I'm encountering the following crash when the background task is triggered: NullPointerException in `...
Muneeza Muneer's user avatar
0 votes
1 answer
148 views

I would like to understand why my DateMapper is not working. here's my mappers: @Mapper(componentModel = MappingConstants.ComponentModel.SPRING, uses = {ProductMapper.class, TagMapper.class}) ...
user30892213's user avatar
0 votes
1 answer
73 views

I have an issue using ITextPdf-7.2.6. I would like to print a big table on a PDF but I always have those two issues. I have an infinite loop if I recreate the renderer or a NullPointerException if I ...
pacataque's user avatar
  • 140
-2 votes
1 answer
149 views

I am seeing a piece of code like this, im simplifying it for explaining == import org.jetbrains.annotations.NotNull; public class TestClass { @NotNull StringBuffer met1(Integer a) { if ...
user496934's user avatar
  • 4,058
0 votes
0 answers
44 views

I encountered an issue where, when using Apollo to inject a static variable property, the variable is null during project startup. However, when the variable is modified via Apollo, its value is ...
NoBug's user avatar
  • 1
0 votes
0 answers
52 views

I am working on a small jakarta ee project for a software engineering course I am taking. I am to connect a database to store user input from a form into the database using a servlet. I removed the ...
user avatar
2 votes
2 answers
51 views

How can I resolve the "NullPointerException" error in Java when accessing an object in a method?
William's user avatar
  • 31
2 votes
1 answer
96 views

I have an issue with ComboBox when I select same item with control key pressed . This is what happens : as you can see in the gif , combobox change values normally , but when control key is pressed , ...
Giovanni Contreras's user avatar
0 votes
0 answers
43 views

I have an android app which is capturing the location. I have tried to check the permissions required on android 15 and also the context passed. Help me trace and fix the issue as it is occuring only ...
Aparna Mutnalkar's user avatar
0 votes
0 answers
33 views

I was using Pojo class in my project and i have used PageFactory.initElements to initialize the elements. But when i try to sendkeys or click the element it throws null poniter exception. Please help ...
Suresh's user avatar
  • 1
3 votes
1 answer
94 views

I'm currently working on an application using Compose and Hilt, and occasionally (less than 10 times out of 1000 according to my automated tests), the order of calls to my ViewModel differs, leading ...
rolandl's user avatar
  • 1,907
0 votes
0 answers
336 views

I am getting below exception when submitting jar file using spark-submit command in cluster mode. Exception in thread "main" org.apache.hadoop.security.KerberosAuthException: failure to ...
Ejas Ali's user avatar
2 votes
2 answers
237 views

I am using Java 21. I have two classes: abstract class MySuperClass { private final Object mySuperField; MySuperClass(Object myField) { this.mySuperField = myField; } public ...
Amateur Linguist's user avatar
2 votes
1 answer
86 views

My application parses .xml files and transforms them into Kotlin classes. It builds JavaClasses based on XSD files. One of the NonNull properties was null, which was causing an uncaught exception. So ...
Quinten Stekelenburg's user avatar
1 vote
0 answers
76 views

whenever I try to open the app it keeps stopping. This issue also comes in many other project also. Here is my MainActivity.kt file package com.shahid.timerlivedata import android.annotation....
Shahid Faried's user avatar
0 votes
1 answer
36 views

Here is the code for the LessonGroup class: public class LessonGroup implements Serializable { //properties private String studentId; private String lessonGroupId; private String ...
Camille Ma's user avatar
-1 votes
2 answers
94 views

When dealing with nested Objects in Java - Something like: // bad code game.getPlayer().getState().getPositionInfo().getCurrent().getX(); , it is not clear if a nested reference would return null ...
TeaTiMe08's user avatar
-1 votes
4 answers
102 views

Why are we not adding Safe Call Operator(?.) instead of Not-Null Assertion(!!) in the attached code in Cache Interceptor ? The source code is : https://github.com/square/okhttp/blob/...
Kartik Bindal's user avatar
0 votes
0 answers
72 views

I'm writing a kernel object that should keep a set of threads information and access them by tid. For this purpose I'm using the hashtable data structure. Every time I get a thread info, I should ...
bui3's user avatar
  • 152
-1 votes
1 answer
448 views

I am migrating from Struts 2.5.33 to Struts 6.4.0. After following the guide at https://cwiki.apache.org/confluence/display/WW/Struts+2.5+to+6.0.0+migration, the app could not display the homepage ...
Pusheen so cute 's user avatar
1 vote
1 answer
94 views

Look at the following code: abstract class A { init { f() } abstract fun f() } class B(val p: () -> Unit) : A() { override fun f() { try { p() ...
Alexey's user avatar
  • 3,202
0 votes
0 answers
28 views

I'm trying to create a simple card game where the user faces against a computer (which is a class in my method that takes its turn automatically after the user), but I'm encountering a ...
Emily Araoju's user avatar
0 votes
1 answer
72 views

I am trying to call a function that is defined in my Main Scala application from within a Test class. The function returns a Dataset of a class that is also defined in my Main app. I want the data to ...
Vanessa Hydoski's user avatar

1
2 3 4 5
320