Good day. I am writing a code that considers the remainder of dividing the Fibonacci number through matrices. On small n with long'es everything worked, when I switched to BigInteger, everything crashes.
Issues:
Exception in thread "main" java.lang.NullPointerException It seems everything is initialized, I do not understand what the problem is. Tell me, please, what is the problem. Here is the code: http://pastebin.com/Q63qdVRW